mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 19:49:59 +02:00
refactor: Improve lazy loading for images in ZenThemesImporter.mjs
This commit is contained in:
parent
6fc860c3e5
commit
8926b7cd23
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ var gZenThemeImporter = new class {
|
||||||
constructor() {
|
constructor() {
|
||||||
console.info("ZenThemeImporter: Initiating Zen theme importer");
|
console.info("ZenThemeImporter: Initiating Zen theme importer");
|
||||||
try {
|
try {
|
||||||
|
window.SessionStore.promiseInitialized.then(() => {
|
||||||
this.insertStylesheet();
|
this.insertStylesheet();
|
||||||
|
});
|
||||||
console.info("ZenThemeImporter: Zen theme imported");
|
console.info("ZenThemeImporter: Zen theme imported");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("ZenThemeImporter: Error importing Zen theme: ", e);
|
console.error("ZenThemeImporter: Error importing Zen theme: ", e);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue