increase clarity regarding additional sources addition
This commit is contained in:
parent
6cf97c803e
commit
ec17d000c1
1 changed files with 12 additions and 6 deletions
|
@ -22,7 +22,13 @@ export default class windowman {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add additional sources.
|
// Add additional sources.
|
||||||
(OPTIONS) ? ((OPTIONS[`CSS`] != null) ? ((Array.isArray(OPTIONS[`CSS`])) ? UI[`CSS`] = UI[`CSS`].concat(OPTIONS[`CSS`]) : UI[`CSS`].push(OPTIONS[`CSS`])) : null) : null;
|
(OPTIONS && (typeof OPTIONS).includes(`obj`))
|
||||||
|
? ((OPTIONS[`CSS`] != null)
|
||||||
|
? ((Array.isArray(OPTIONS[`CSS`]))
|
||||||
|
? UI[`CSS`] = [...UI[`CSS`], ...OPTIONS[`CSS`]]
|
||||||
|
: UI[`CSS`].push(OPTIONS[`CSS`]))
|
||||||
|
: null)
|
||||||
|
: null;
|
||||||
|
|
||||||
(UI[`CSS`]).forEach(async (source) => {
|
(UI[`CSS`]).forEach(async (source) => {
|
||||||
try {
|
try {
|
||||||
|
@ -51,10 +57,7 @@ export default class windowman {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
// Get the window.
|
|
||||||
this[`metadata`] = chrome.windows.getCurrent();
|
|
||||||
|
|
||||||
/* Fill in data and events. */
|
/* Fill in data and events. */
|
||||||
function appearance() {
|
function appearance() {
|
||||||
|
@ -258,6 +261,9 @@ export default class windowman {
|
||||||
actions();
|
actions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get the window.
|
||||||
|
this[`metadata`] = chrome.windows.getCurrent();
|
||||||
|
|
||||||
headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false) ? OPTIONS[`headers`] : null);
|
headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false) ? OPTIONS[`headers`] : null);
|
||||||
appearance();
|
appearance();
|
||||||
events();
|
events();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue