Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

Commit 383ca46

Browse files
committed
Disable page's icon when activated from the toolbar
1 parent 5989b5f commit 383ca46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/content.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@
279279
}
280280
}
281281
browser.runtime.onMessage.addListener(request => {
282-
metrics.start_session('toolbar');
282+
this.icon.classList.add("stm-hidden");
283+
document.getElementsByClassName("stm-icon")[0].disabled = true;
284+
metrics.start_session("toolbar");
283285
SpeakToMePopup.showAt(0, 0);
284286
stm_init();
285287
return Promise.resolve({response: "content script ack"});

0 commit comments

Comments
 (0)