fix: remove Services.jsm
fix: related errors on fx128 platform
This commit is contained in:
parent
270d7fcb7f
commit
79f7c81886
|
|
@ -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"
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue