Skip to content

Commit

Permalink
v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jc3213 committed Jun 3, 2024
1 parent 9b23d88 commit 1f6e991
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mv2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_extension_name__",
"description": "__MSG_extension_description__",
"version": "0.8.0",
"version": "0.8.1",
"manifest_version": 2,
"permissions": [
"proxy",
Expand Down
13 changes: 10 additions & 3 deletions mv3/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,24 @@ async function easyProxyMV3Persistent() {
var storage = await chrome.storage.local.get(null);
if (storage.persistent) {
clearInterval(easyPersistent);
chrome.action.setBadgeText({text: ''});
storage.persistent = false;
}
else {
easyPersistent = setInterval(chrome.runtime.getPlatformInfo, 26000);
persistentModeEnabled();
storage.persistent = true;
}
chrome.storage.local.set(storage);
}

chrome.storage.local.get(null).then((json) => {
if (storage.persistent) {
easyPersistent = setInterval(chrome.runtime.getPlatformInfo, 26000);
if (json.persistent) {
persistentModeEnabled()
}
});

function persistentModeEnabled() {
easyPersistent = setInterval(chrome.runtime.getPlatformInfo, 26000);
chrome.action.setBadgeText({text: 'M'});
chrome.action.setBadgeBackgroundColor({color: '#f8c'});
}
2 changes: 1 addition & 1 deletion mv3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_extension_name__",
"description": "__MSG_extension_description__",
"version": "0.8.0",
"version": "0.8.1",
"manifest_version": 3,
"permissions": [
"proxy",
Expand Down

0 comments on commit 1f6e991

Please sign in to comment.