Skip to content

Commit

Permalink
Merge pull request #247 from XjSv/hotfix-firefox-background-script
Browse files Browse the repository at this point in the history
Background Script Fix
  • Loading branch information
XjSv authored Jul 10, 2023
2 parents 293bda6 + 72a8819 commit 1bebe06
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
Binary file modified build/environment-marker-chromium.zip
Binary file not shown.
Binary file modified build/environment-marker-firefox.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function onError(error) {

chrome.storage.sync.get(extensionEnabledKey).then((extensionEnabledValue) => {
let extensionEnabled = extensionEnabledValue[extensionEnabledKey] === undefined ? true : extensionEnabledValue[extensionEnabledKey];
if (extensionEnabled) {
initialize();
if (!extensionEnabled) {
removeListeners();
}
}, onError);

Expand Down Expand Up @@ -174,3 +174,5 @@ function removeListeners() {
chrome.tabs.onUpdated.removeListener(onUpdatedListener);
clearCount();
}

initialize();
2 changes: 1 addition & 1 deletion js/background.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 js/background.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest-chrome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "__MSG_extensionName__",
"version": "3.0.0",
"version": "3.0.1",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://github.com/XjSv/environment-marker",
"default_locale": "en",
Expand Down
4 changes: 2 additions & 2 deletions manifest-firefox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "__MSG_extensionName__",
"version": "3.0.0",
"version": "3.0.1",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://github.com/XjSv/environment-marker",
"default_locale": "en",
Expand All @@ -24,7 +24,7 @@
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "57.0"
"strict_min_version": "109.0"
}
},
"action": {
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "__MSG_extensionName__",
"version": "3.0.0",
"version": "3.0.1",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://github.com/XjSv/environment-marker",
"default_locale": "en",
Expand All @@ -24,7 +24,7 @@
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "57.0"
"strict_min_version": "109.0"
}
},
"action": {
Expand Down
1 change: 0 additions & 1 deletion options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ <h4 id="export-import-section-label"></h4>
</div>
</div>

<script src="/libraries/browser-polyfill.min.js"></script>
<script src="/libraries/jquery.slim.min.js"></script>
<script src="/libraries/bootstrap/js/bootstrap.min.js"></script>
<script src="/libraries/fontpicker/jquery.fontpicker.min.js"></script>
Expand Down
1 change: 0 additions & 1 deletion popup/environment-marker.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@

</div>

<script src="/libraries/browser-polyfill.min.js"></script>
<script src="/libraries/jquery.slim.min.js"></script>
<script src="/libraries/bootstrap/js/bootstrap.min.js"></script>
<script src="/libraries/pickr/pickr.min.js"></script>
Expand Down

0 comments on commit 1bebe06

Please sign in to comment.