mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Changed button exists check
This commit is contained in:
@@ -537,7 +537,7 @@ function removePlayerControlsButton() {
|
||||
}
|
||||
|
||||
function createButton(baseid, title, callback, imageName) {
|
||||
if (document.getElementById(baseid) != null) return;
|
||||
if (document.getElementById(baseid+"Button") != null) return;
|
||||
// Button HTML
|
||||
let newButton = document.createElement("button");
|
||||
newButton.id = baseid+"Button";
|
||||
|
||||
Reference in New Issue
Block a user