Skip to content

Commit

Permalink
Fixes #228: No need to define a Services variable at all.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalroz committed Jul 29, 2024
1 parent 80fa07b commit 529b464
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/chrome/content/overlay-injectors/messenger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const Services = globalThis.Services;

Services.scriptloader.loadSubScript("chrome://removedupes/content/removedupes.js", window, "UTF-8");

function injectToolbarButton() {
Expand Down
1 change: 0 additions & 1 deletion src/chrome/content/removedupes-common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var EXPORTED_SYMBOLS = ["RemoveDupes"];
var RemoveDupes = {};

const Services = globalThis.Services;
const { MailServices } = ChromeUtils.importESModule("resource:///modules/MailServices.sys.mjs");
const { XPCOMUtils } = ChromeUtils.importESModule("resource://gre/modules/XPCOMUtils.sys.mjs");

Expand Down
1 change: 0 additions & 1 deletion src/chrome/content/removedupes-dialog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { RemoveDupes } = ChromeUtils.import("chrome://removedupes/content/removedupes-common.js");
const Services = globalThis.Services;
const { MailUtils } = ChromeUtils.importESModule("resource:///modules/MailUtils.sys.mjs");

var msgWindow;
Expand Down

0 comments on commit 529b464

Please sign in to comment.