Formatting background.js
parent
fc2102be6d
commit
67dab25f83
|
@ -1,6 +1,6 @@
|
||||||
// Capture web requests
|
// Capture web requests
|
||||||
chrome.webRequest.onBeforeSendHeaders.addListener(
|
chrome.webRequest.onBeforeSendHeaders.addListener(
|
||||||
function(event) {
|
function (event) {
|
||||||
main(event);
|
main(event);
|
||||||
},
|
},
|
||||||
{ urls: ['*://*.fandom.com/*', '*://*.wiki.fextralife.com/*'], types: ['main_frame'] }
|
{ urls: ['*://*.fandom.com/*', '*://*.wiki.fextralife.com/*'], types: ['main_frame'] }
|
||||||
|
@ -212,7 +212,7 @@ function redirectToBreezeWiki(storage, eventInfo, url) {
|
||||||
processRedirect(host);
|
processRedirect(host);
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.log('Indie Wiki Buddy failed to get BreezeWiki data: ' + e);
|
console.log('Indie Wiki Buddy failed to get BreezeWiki data: ' + e);
|
||||||
chrome.storage.sync.set({ 'breezewikiHost': 'https://breezewiki.com'});
|
chrome.storage.sync.set({ 'breezewikiHost': 'https://breezewiki.com' });
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
processRedirect(storage.breezewikiHost);
|
processRedirect(storage.breezewikiHost);
|
||||||
|
|
Loading…
Reference in New Issue