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