Skip to content

Commit

Permalink
fix: remove Services.jsm
Browse files Browse the repository at this point in the history
fix: related errors on fx128 platform
  • Loading branch information
windingwind committed Jan 12, 2025
1 parent 270d7fc commit 79f7c81
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion addon/chrome/content/lib/js/printUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */

var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
var { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
Expand Down
3 changes: 0 additions & 3 deletions addon/chrome/content/printWrapper.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
</style>
<script>
var browser;
var { Services } = ChromeUtils.import(
"resource://gre/modules/Services.jsm",
);
var { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm",
);
Expand Down
4 changes: 0 additions & 4 deletions addon/chrome/content/syncManager.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
</xul:keyset>
<script>
document.addEventListener("DOMContentLoaded", (ev) => {
const { Services } = ChromeUtils.import(
"resource://gre/modules/Services.jsm",
);

Services.scriptloader.loadSubScript(
"chrome://zotero/content/include.js",
this,
Expand Down
4 changes: 0 additions & 4 deletions addon/chrome/content/templateEditor.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
</xul:keyset>
<script>
document.addEventListener("DOMContentLoaded", (ev) => {
const { Services } = ChromeUtils.import(
"resource://gre/modules/Services.jsm",
);

Services.scriptloader.loadSubScript(
"chrome://zotero/content/include.js",
this,
Expand Down

0 comments on commit 79f7c81

Please sign in to comment.