Skip to content

Commit

Permalink
Merge pull request #3 from piroor/patch-1
Browse files Browse the repository at this point in the history
Support TST 3.0.12 and later
  • Loading branch information
MurzNN authored May 27, 2019
2 parents 6146f2c + 13f228a commit 26ba486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async function registerToTST() {
await browser.runtime.sendMessage(TST_ID, {
type: "register-self",
name: self.id,
listeningTypes: ["ready", "sidebar-show"],
listeningTypes: ["ready", "sidebar-show", "permissions-changed"],
});
} catch(e) {
// Could not register
Expand All @@ -149,6 +149,7 @@ async function handleTSTMessage(message, sender) {
case "ready":
registerToTST();
case "sidebar-show":
case "permissions-changed":
if(ColoredTabs.state.inited != true) {
// console.log('TST ready, initializing ColoredTabs');
ColoredTabs.init();
Expand Down

0 comments on commit 26ba486

Please sign in to comment.