diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 387f7f325..9d94c5a27 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -657,12 +657,12 @@ class ExtensionRow extends Gtk.ListBoxRow { } get prefsModule() { + // give extension prefs access to their own extension object + ExtensionUtils.getCurrentExtension = () => this._extension; + if (!this._prefsModule) { ExtensionUtils.installImporter(this._extension); - // give extension prefs access to their own extension object - ExtensionUtils.getCurrentExtension = () => this._extension; - this._prefsModule = this._extension.imports.prefs; this._prefsModule.init(this._extension.metadata); }