diff --git a/Extensions/xkit_patches.js b/Extensions/xkit_patches.js
index e3e76eda9..2bb56ff6e 100644
--- a/Extensions/xkit_patches.js
+++ b/Extensions/xkit_patches.js
@@ -21,10 +21,11 @@ XKit.extensions.xkit_patches = new Object({
if (XKit.browser().firefox === true && XKit.storage.get("xkit_patches", "w_edition_warned") !== "true") {
let version = XKit.tools.parse_version(XKit.version);
if (version.major === 7 && version.minor >= 8) {
- fetch(browser.extension.getURL("manifest.json")) // eslint-disable-line no-undef
+ fetch(browser.runtime.getURL("manifest.json")) // eslint-disable-line no-undef
.then(response => response.json())
.then(responseData => {
- if (responseData.applications.gecko.id === "@new-xkit-w") {
+ if (responseData.applications && responseData.applications.gecko.id === "@new-xkit-w" ||
+ responseData.browser_specific_settings && responseData.browser_specific_settings.gecko.id === "@new-xkit-w") {
XKit.window.show(
"W Edition warning",
"XKit Patches has determined that you are using
New XKit (W Edition), an unofficial upload of New XKit.
" +
diff --git a/bridge.js b/bridge.js
index 637dbadd8..5596f1214 100644
--- a/bridge.js
+++ b/bridge.js
@@ -51,7 +51,7 @@ function getBridgeError() { // eslint-disable-line no-redeclare
function getVersion() {
var xhr = new XMLHttpRequest();
- xhr.open('GET', browser.extension.getURL('manifest.json'), false);
+ xhr.open('GET', browser.runtime.getURL('manifest.json'), false);
xhr.send(null);
var manifest = JSON.parse(xhr.responseText);
return manifest.version;
diff --git a/manifest.json b/manifest.json
index 08147396f..2efcb0a1b 100644
--- a/manifest.json
+++ b/manifest.json
@@ -33,7 +33,7 @@
"permissions": ["storage", "unlimitedStorage", "*://*.tumblr.com/*", "https://new-xkit.github.io/XKit/*", "https://cloud.new-xkit.com/*" ],
"version": "7.10.0",
"web_accessible_resources": [ "*.js", "*.json", "*.css" ],
- "applications": {
+ "browser_specific_settings": {
"gecko": {
"id": "@new-xkit",
"strict_min_version": "115.0",