From 9cfc2ff6f809dec1a89d6ff93bc97698450e2b6b Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 24 Jan 2016 08:52:32 -0500 Subject: [PATCH] this fixes https://github.com/gorhill/uBlock/issues/763 --- platform/firefox/vapi-background.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index d4bf94a..286a9eb 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -2422,7 +2422,10 @@ vAPI.toolbarButton = { break; } - if ( document.getElementById(tbb.id) !== null ) { + // https://github.com/gorhill/uBlock/issues/763 + // We are done if our toolbar button is already installed in one of the + // toolbar. + if ( palette !== null && toolbarButton.parentElement !== palette ) { return; }