From bfb876af8b56d4ab1f1efa1605c3f84334fbfe48 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Wed, 21 Aug 2019 18:29:41 +0100 Subject: [PATCH] Changed button exists check --- content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content.js b/content.js index c5d02edd..2134e8c8 100644 --- a/content.js +++ b/content.js @@ -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";