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

Commit

Permalink
Disable page's icon when activated from the toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenatal committed Nov 3, 2017
1 parent 5989b5f commit 383ca46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@
}
}
browser.runtime.onMessage.addListener(request => {
metrics.start_session('toolbar');
this.icon.classList.add("stm-hidden");
document.getElementsByClassName("stm-icon")[0].disabled = true;
metrics.start_session("toolbar");
SpeakToMePopup.showAt(0, 0);
stm_init();
return Promise.resolve({response: "content script ack"});
Expand Down

0 comments on commit 383ca46

Please sign in to comment.