Skip to content

Commit

Permalink
fix ChromeUtils.importESModule uses
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed Nov 12, 2023
1 parent c560ee5 commit cb3b352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resource/modules/TabView.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ this.__defineGetter__('gTaskbarTabGroup', function() { return window.gTaskbarTab
this.__defineGetter__('TabContextMenu', function() { return window.TabContextMenu; });
this.__defineGetter__('goUpdateCommand', function() { return window.goUpdateCommand; });

XPCOMUtils.defineLazyGetter(this, "AeroPeek", () => { return ChromeUtils.importESModule("resource:///modules/WindowsPreviewPerTab.sys.mjs", {}).AeroPeek; });
XPCOMUtils.defineLazyGetter(this, "AeroPeek", () => { return ChromeUtils.importESModule("resource:///modules/WindowsPreviewPerTab.sys.mjs").AeroPeek; });
ChromeUtils.defineESModuleGetters(this, {PageThumbs: "resource://gre/modules/PageThumbs.sys.mjs"});

this.TabView = {
Expand Down
3 changes: 1 addition & 2 deletions resource/modules/compatibilityFix/brighttext.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

this.__defineGetter__('LightweightThemeManager', function() {
delete this.LightweightThemeManager;
ChromeUtils.importESModule("resource://gre/modules/LightweightThemeManager.sys.mjs", this);
return this.LightweightThemeManager;
return this.LightweightThemeManager = ChromeUtils.importESModule("resource://gre/modules/LightweightThemeManager.sys.mjs");
});

this.brightText = {
Expand Down

0 comments on commit cb3b352

Please sign in to comment.