monitoring won't be needed for now, but add custom themes
Use tabs instead of windows
This commit is contained in:
parent
b1206a3b51
commit
2de9edef73
1 changed files with 2 additions and 11 deletions
|
@ -18,7 +18,7 @@ export default class windowman {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add additional sources.
|
// 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) => {
|
(UI[`CSS`]).forEach(async (source) => {
|
||||||
try {
|
try {
|
||||||
|
@ -254,20 +254,11 @@ export default class windowman {
|
||||||
actions();
|
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`] : null);
|
||||||
headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false)? OPTIONS[`headers`] : {});
|
|
||||||
appearance();
|
appearance();
|
||||||
events();
|
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. */
|
/* Run this function if you would like to synchronize with data. */
|
||||||
async sync() {
|
async sync() {
|
||||||
// Import the module.
|
// Import the module.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue