fix: remove Services.jsm

fix: related errors on fx128 platform
This commit is contained in:
windingwind 2025-01-12 15:08:06 +01:00
parent 270d7fcb7f
commit 79f7c81886
4 changed files with 0 additions and 12 deletions

View File

@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * 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( var { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm" "resource://gre/modules/XPCOMUtils.jsm"
); );

View File

@ -21,9 +21,6 @@
</style> </style>
<script> <script>
var browser; var browser;
var { Services } = ChromeUtils.import(
"resource://gre/modules/Services.jsm",
);
var { XPCOMUtils } = ChromeUtils.import( var { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm", "resource://gre/modules/XPCOMUtils.jsm",
); );

View File

@ -44,10 +44,6 @@
</xul:keyset> </xul:keyset>
<script> <script>
document.addEventListener("DOMContentLoaded", (ev) => { document.addEventListener("DOMContentLoaded", (ev) => {
const { Services } = ChromeUtils.import(
"resource://gre/modules/Services.jsm",
);
Services.scriptloader.loadSubScript( Services.scriptloader.loadSubScript(
"chrome://zotero/content/include.js", "chrome://zotero/content/include.js",
this, this,

View File

@ -45,10 +45,6 @@
</xul:keyset> </xul:keyset>
<script> <script>
document.addEventListener("DOMContentLoaded", (ev) => { document.addEventListener("DOMContentLoaded", (ev) => {
const { Services } = ChromeUtils.import(
"resource://gre/modules/Services.jsm",
);
Services.scriptloader.loadSubScript( Services.scriptloader.loadSubScript(
"chrome://zotero/content/include.js", "chrome://zotero/content/include.js",
this, this,