This commit is contained in:
@@ -48,9 +48,8 @@
|
|||||||
if (response && response.success) {
|
if (response && response.success) {
|
||||||
itemData = response.data;
|
itemData = response.data;
|
||||||
} else {
|
} else {
|
||||||
console.error('Failed to fetch custom data, falling back to local');
|
console.error('Failed to fetch custom data. Not falling back to local data as per user preference.');
|
||||||
const localResponse = await fetch(browserAPI.runtime.getURL('new_data.json'));
|
itemData = {};
|
||||||
itemData = await localResponse.json();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const response = await fetch(browserAPI.runtime.getURL('new_data.json'));
|
const response = await fetch(browserAPI.runtime.getURL('new_data.json'));
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Spectral RS Wiki Price Display",
|
"name": "Spectral RS Wiki Price Display",
|
||||||
"version": "1.0",
|
"version": "1.0.2",
|
||||||
"description": "Displays item IDs from ely.gg on RuneScape Wiki pages.",
|
"description": "Displays item IDs from ely.gg on RuneScape Wiki pages.",
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
@@ -16,7 +16,9 @@
|
|||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage",
|
"storage",
|
||||||
"https://www.ely.gg/*"
|
"https://www.ely.gg/*",
|
||||||
|
"https://*/*",
|
||||||
|
"http://*/*"
|
||||||
],
|
],
|
||||||
"icons": {
|
"icons": {
|
||||||
"64": "img/64.png",
|
"64": "img/64.png",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Spectral RS Wiki Price Display",
|
"name": "Spectral RS Wiki Price Display",
|
||||||
"version": "1.0",
|
"version": "1.0.2",
|
||||||
"description": "Displays item IDs from ely.gg on RuneScape Wiki pages.",
|
"description": "Displays item IDs from ely.gg on RuneScape Wiki pages.",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage"
|
"storage"
|
||||||
@@ -12,8 +12,8 @@
|
|||||||
"https://*/*"
|
"https://*/*"
|
||||||
],
|
],
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "img/64.png",
|
"64": "img/64.png",
|
||||||
"96": "img/128.png"
|
"128": "img/128.png"
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"default_icon": "img/64.png",
|
"default_icon": "img/64.png",
|
||||||
|
|||||||
@@ -15,7 +15,9 @@
|
|||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage",
|
"storage",
|
||||||
"https://www.ely.gg/*"
|
"https://www.ely.gg/*",
|
||||||
|
"https://*/*",
|
||||||
|
"http://*/*"
|
||||||
],
|
],
|
||||||
"icons": {
|
"icons": {
|
||||||
"64": "img/64.png",
|
"64": "img/64.png",
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user