diff --git a/js/preload.js b/js/preload.js index 6aa7d7b..f4f9e29 100644 --- a/js/preload.js +++ b/js/preload.js @@ -350,7 +350,7 @@ async function getApiKeysDirect() { let userId = getUserId(); var apiKeys = null; Logger.log(`Fetching API key for user ${userId}`); - let html = await (await fetch(`https://${Setting.getValue("defaultDomain")}/api`, { credentials: "same-origin" })).text(); + let html = await (await fetch(`https://${Setting.getValue("defaultDomain")}/api/`, { credentials: "same-origin" })).text(); let docParser = new DOMParser(); let doc = docParser.parseFromString(html, "text/html"); @@ -362,7 +362,7 @@ async function getApiKeysDirect() { } else { Logger.log("API key not found - generating and trying again"); let submitData = new FormData(doc.getElementById("s-api-register-form")); - let generateFetch = await fetch(`https://${Setting.getValue("defaultDomain")}/api`, { + let generateFetch = await fetch(`https://${Setting.getValue("defaultDomain")}/api/`, { credentials: "same-origin", body: submitData, method: "post" diff --git a/manifest.json b/manifest.json index e130ab8..db8deb5 100644 --- a/manifest.json +++ b/manifest.json @@ -4,12 +4,13 @@ "short_name": "Schoology+", "description": "Schoology Plus enhances your Schoology experience with numerous interface improvements", "homepage_url": "https://schoologypl.us?utm_source=ext-homepage-link", - "applications": { + "browser_specific_settings": { "gecko": { - "id": "schoology.plus@aopell.me" + "id": "schoology.plus@aopell.me", + "update_url": "https://schoologypl.us/firefox_updates.json" } }, - "version": "7.3.5", + "version": "7.3.6", "icons": { "128": "imgs/icon@128.png", "64": "imgs/icon@64.png",