Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from SintcoLTD/main
Browse files Browse the repository at this point in the history
Updating to 1.2
  • Loading branch information
NajmAjmal-old authored Apr 20, 2023
2 parents c47c836 + a64251f commit 6b81ebc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions contentScript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// START FILE CHECK FOR 1.1
fetch('https://raw.githubusercontent.com/SintcoLTD/CDN/main/chrome-extension/sparxmaths/notifications/1.1/switch.txt')
// START FILE CHECK FOR 1.2
fetch('https://raw.githubusercontent.com/SintcoLTD/CDN/main/chrome-extension/sparxmaths/notifications/1.2/switch.txt')
.then(response => response.text())
.then(text => {
if (text.includes('CHROME EXTENSION ENABLE')) {
Expand All @@ -19,7 +19,7 @@ fetch('https://raw.githubusercontent.com/SintcoLTD/CDN/main/chrome-extension/spa
}

// START FILE CHECK FOR NOTIFICATION
fetch('https://raw.githubusercontent.com/SintcoLTD/CDN/main/chrome-extension/sparxmaths/notifications/1.1/notification.txt')
fetch('https://raw.githubusercontent.com/SintcoLTD/CDN/main/chrome-extension/sparxmaths/notifications/1.2/notification.txt')
.then(response => response.text())
.then(text => {
// If notification.txt has any content, display an alert
Expand All @@ -31,4 +31,4 @@ fetch('https://raw.githubusercontent.com/SintcoLTD/CDN/main/chrome-extension/spa
// END FILE CHECK FOR NOTIFICATION
})
.catch(error => console.log(error));
// END FILE CHECK FOR 1.1
// END FILE CHECK FOR 1.2
2 changes: 1 addition & 1 deletion inject.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
async function fetchScript() {
try {
let response = await fetch('https://raw.githubusercontent.com/SintcoLTD/sparxmaths/main/release.json');
let response = await fetch('https://raw.githubusercontent.com/SintcoLTD/CDN/main/chrome-extension/sparxmaths/release.json');
let json = await response.json();

let js = document.createElement("script");
Expand Down

0 comments on commit 6b81ebc

Please sign in to comment.