Skip to content

Commit

Permalink
Replace XPCOMUtils.defineLazyGetter()
Browse files Browse the repository at this point in the history
  • Loading branch information
jobisoft committed Jul 21, 2024
1 parent 7c59ad1 commit 50e54b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/WindowListener/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ var WindowListener = class extends ExtensionCommon.ExtensionAPI {
for (let api of apis) {
switch (api) {
case "storage":
XPCOMUtils.defineLazyGetter(messenger, "storage", () => getStorage());
ChromeUtils.defineLazyGetter(messenger, "storage", () => getStorage());
break;

default:
XPCOMUtils.defineLazyGetter(messenger, api, () =>
ChromeUtils.defineLazyGetter(messenger, api, () =>
context.apiCan.findAPIPath(api)
);
}
Expand Down

0 comments on commit 50e54b7

Please sign in to comment.