chore: remove sitewide.js console logs
This commit is contained in:
parent
a20b22d148
commit
254957bdc7
1 changed files with 0 additions and 7 deletions
|
|
@ -1,26 +1,19 @@
|
||||||
console.log('start of script')
|
|
||||||
|
|
||||||
var Settings;
|
var Settings;
|
||||||
let Theme = ``;
|
let Theme = ``;
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
console.log('start of async')
|
|
||||||
let Utilities = await import(chrome.runtime.getURL('resources/utils.js'));
|
let Utilities = await import(chrome.runtime.getURL('resources/utils.js'));
|
||||||
Utilities = Utilities.default;
|
Utilities = Utilities.default;
|
||||||
console.log('imported utils')
|
|
||||||
|
|
||||||
chrome.storage.sync.get(['PolyPlus_Settings'], function (result) {
|
chrome.storage.sync.get(['PolyPlus_Settings'], function (result) {
|
||||||
console.log("fetched settings: ", result)
|
|
||||||
// Merge settings and expected settings to make sure all keys exist
|
// Merge settings and expected settings to make sure all keys exist
|
||||||
const RawSettings = result.PolyPlus_Settings;
|
const RawSettings = result.PolyPlus_Settings;
|
||||||
Settings = Utilities.MergeObjects(RawSettings || Utilities.DefaultSettings, Utilities.DefaultSettings);
|
Settings = Utilities.MergeObjects(RawSettings || Utilities.DefaultSettings, Utilities.DefaultSettings);
|
||||||
|
|
||||||
const PageLoad = async function() {
|
const PageLoad = async function() {
|
||||||
console.log("fired dom load")
|
|
||||||
if (document.getElementsByClassName('card-header')[0] && document.getElementsByClassName('card-header')[0].innerText === ' Page not found') {
|
if (document.getElementsByClassName('card-header')[0] && document.getElementsByClassName('card-header')[0].innerText === ' Page not found') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("passed error check")
|
|
||||||
|
|
||||||
Utilities.InjectResource('getUserDetails');
|
Utilities.InjectResource('getUserDetails');
|
||||||
document.body.setAttribute('data-URL', window.location.pathname);
|
document.body.setAttribute('data-URL', window.location.pathname);
|
||||||
|
|
|
||||||
Reference in a new issue