monitoring won't be needed for now, but add custom themes

Use tabs instead of windows
This commit is contained in:
buzz-lightsnack-2007 2024-04-23 12:32:52 +08:00
parent b1206a3b51
commit 2de9edef73

View file

@ -18,7 +18,7 @@ export default class windowman {
};
// Add additional sources.
(OPTIONS[`CSS`] != null) ? ((Array.isArray(OPTIONS[`CSS`])) ? UI[`CSS`] = UI[`CSS`].concat(OPTIONS[`CSS`]) : UI[`CSS`].push(OPTIONS[`CSS`])) : null;
(OPTIONS) ? ((OPTIONS[`CSS`] != null) ? ((Array.isArray(OPTIONS[`CSS`])) ? UI[`CSS`] = UI[`CSS`].concat(OPTIONS[`CSS`]) : UI[`CSS`].push(OPTIONS[`CSS`])) : null) : null;
(UI[`CSS`]).forEach(async (source) => {
try {
@ -254,20 +254,11 @@ export default class windowman {
actions();
}
((OPTIONS != null && (typeof OPTIONS).includes(`obj`) && !Array.isArray(OPTIONS)) ? OPTIONS[`monitor`] : true) ? this.monitor() : null;
headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false)? OPTIONS[`headers`] : {});
headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false)? OPTIONS[`headers`] : null);
appearance();
events();
}
/* Send monitoring events, useful to determining whether the window is opened or closed.
@param {string} MESSAGE_NAME Custom message name
*/
monitor() {
chrome.runtime.connect({name: `view=${window.location.href}`});
};
/* Run this function if you would like to synchronize with data. */
async sync() {
// Import the module.