mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 22:29: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() {
|
||||
console.info("ZenThemeImporter: Initiating Zen theme importer");
|
||||
try {
|
||||
this.insertStylesheet();
|
||||
window.SessionStore.promiseInitialized.then(() => {
|
||||
this.insertStylesheet();
|
||||
});
|
||||
console.info("ZenThemeImporter: Zen theme imported");
|
||||
} catch (e) {
|
||||
console.error("ZenThemeImporter: Error importing Zen theme: ", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue