Formatting background.js

pull/271/head
Kevin Payravi 2023-10-16 01:29:31 -04:00
parent fc2102be6d
commit 67dab25f83
1 changed files with 2 additions and 2 deletions

View File

@ -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);