Extension: Print error when starting

This commit is contained in:
Romain Vigier
2022-03-13 17:58:22 +01:00
parent 07a3e3925e
commit 9bad231b39
+3 -1
View File
@@ -37,7 +37,9 @@ class NightThemeSwitcher {
enable() {
// We need to wait for the extension manager to be initialized in order
// to access the User Themes extension settings.
this.#waitForExtensionManager().then(() => this.start());
this.#waitForExtensionManager()
.then(() => this.start())
.catch(e => console.error(e));
}
start() {