Skip to content

Commit

Permalink
fix(extension): ensure to set value for isEnabled and isInjected
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Apr 17, 2024
1 parent 0bee2aa commit 85c8655
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/extension/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/extension/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ chrome.tabs.onUpdated.addListener(async (tabId, changeInfo, tab) => {
}
else {
chrome.action.enable(tabId);
chrome.storage.local.set({ [`${prefix}is-enabled-${tabId}`]: false });
chrome.storage.local.set({ [`${prefix}is-injected-${tabId}`]: false });
}
});
chrome.tabs.onCreated.addListener(tab => {
Expand Down
2 changes: 1 addition & 1 deletion dist/extension/js/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* orange-confort-plus - version 5.0.0-alpha.2 - 15/04/2024
* orange-confort-plus - version 5.0.0-alpha.3 - 17/04/2024
* Enhance user experience on web sites
* © 2014 - 2024 Orange SA
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/extension/js/toolbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/serveur/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/serveur/js/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* orange-confort-plus - version 5.0.0-alpha.2 - 15/04/2024
* orange-confort-plus - version 5.0.0-alpha.3 - 17/04/2024
* Enhance user experience on web sites
* © 2014 - 2024 Orange SA
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/serveur/js/toolbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/js/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* orange-confort-plus - version 5.0.0-alpha.2 - 15/04/2024
* orange-confort-plus - version 5.0.0-alpha.3 - 17/04/2024
* Enhance user experience on web sites
* © 2014 - 2024 Orange SA
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/js/toolbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/extension/scripts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ chrome.tabs.onUpdated.addListener(async (tabId, changeInfo, tab) => {
chrome.action.disable(tabId);
} else {
chrome.action.enable(tabId);
chrome.storage.local.set({[`${prefix}is-enabled-${tabId}`]: false});
chrome.storage.local.set({[`${prefix}is-injected-${tabId}`]: false});
}
});

Expand Down

0 comments on commit 85c8655

Please sign in to comment.