diff --git a/extension/content.js b/extension/content.js index e11e22d..16aff9f 100644 --- a/extension/content.js +++ b/extension/content.js @@ -68,8 +68,9 @@ checkExtensionStatus().then(() => { }) } else { - showNotification(extensionStatusJSON); - return; + checkElement(".google-material-icons", "call_end").then(() => { + showNotification(extensionStatusJSON); + }) } }) }) @@ -247,7 +248,7 @@ async function checkExtensionStatus() { // https://stackoverflow.com/a/42518434 await fetch( - "https://vivek-nexus.github.io/transcripto/status/status-prod.json", + "https://ejnana.github.io/gmeet-slack-integration-status/transcripto/status-prod.json", { cache: "no-store" } ) .then((response) => response.json()) diff --git a/status/status-prod.json b/status/status-prod.json deleted file mode 100644 index 99cdfe3..0000000 --- a/status/status-prod.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "message": "Transcripto is running
Do not turn off captions" -} \ No newline at end of file diff --git a/status/status-test.json b/status/status-test.json deleted file mode 100644 index de86286..0000000 --- a/status/status-test.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 400, - "message": "Transcripto is down for bug fix
It will resume automatically once the bug is fixed. Check status here." -} \ No newline at end of file