Skip to content

Commit 1625f1c

Browse files
authored
Merge pull request #8 from AzlanCoding/double-ping-bug
Fixed Double Checking Bug Again
2 parents dd23d28 + 8e99c87 commit 1625f1c

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

extension/background.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ async function initExtension(){
574574
checkPermissions();
575575
let permissionsCheckInterval = setInterval(checkPermissions, 1000);
576576
}
577-
return logData("info","EXTENSION INITILISATION COMPLETE");
577+
return await logData("info","EXTENSION INITILISATION COMPLETE");
578578
}
579579
}
580580

@@ -604,7 +604,13 @@ if (typeof window == 'undefined') { //The javascript equivilant of `if __name__
604604
}
605605
});
606606

607-
chrome.runtime.onStartup.addListener(initExtension);
608-
chrome.runtime.onInstalled.addListener(initExtension);
607+
/*chrome.runtime.onStartup.addListener(initExtension);
608+
chrome.runtime.onInstalled.addListener(initExtension);*/
609+
chrome.runtime.onStartup.addListener(async() => {
610+
await logData("info","EXTENSION STARTUP");
611+
});
612+
chrome.runtime.onInstalled.addListener(async() => {
613+
await logData("info","EXTENSION INSTALL SUCCESS");
614+
});
609615
initExtension();
610616
}

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Ignite DMA",
4-
"version": "1.1.3",
4+
"version": "1.1.4",
55
"author": "AzlanCoding",
66
"description": "A Device Manager Application (DMA) for students under MOE",
77
"homepage_url": "https://ignitedma.mooo.com/",

server/assets/service/update.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
33
<app appid='clhnfaboginbheghbebffggbdnijjika'>
4-
<updatecheck codebase='https://ignitedma.mooo.com/assets/service/chrome_extension/v1.1.3.crx' version='1.1.3' />
4+
<updatecheck codebase='https://ignitedma.mooo.com/assets/service/chrome_extension/v1.1.4.crx' version='1.1.4' />
55
</app>
66
</gupdate>

0 commit comments

Comments
 (0)