summaryrefslogtreecommitdiffstats
path: root/content/api/BootstrapLoader
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--content/api/BootstrapLoader/CHANGELOG.md4
-rw-r--r--content/api/BootstrapLoader/implementation.js5
2 files changed, 7 insertions, 2 deletions
diff --git a/content/api/BootstrapLoader/CHANGELOG.md b/content/api/BootstrapLoader/CHANGELOG.md
index 5006ecf..edc0639 100644
--- a/content/api/BootstrapLoader/CHANGELOG.md
+++ b/content/api/BootstrapLoader/CHANGELOG.md
@@ -1,3 +1,7 @@
+Version: 1.22
+-------------
+- adjusted to Thunderbird Supernova (Services is now in globalThis)
+
Version: 1.21
-------------
- Explicitly set hasAddonManagerEventListeners flag to false on uninstall
diff --git a/content/api/BootstrapLoader/implementation.js b/content/api/BootstrapLoader/implementation.js
index 03e6b76..82e03d5 100644
--- a/content/api/BootstrapLoader/implementation.js
+++ b/content/api/BootstrapLoader/implementation.js
@@ -2,7 +2,7 @@
* This file is provided by the addon-developer-support repository at
* https://github.com/thundernest/addon-developer-support
*
- * Version: 1.21
+ * Version 1.22
*
* Author: John Bieling (john@thunderbird.net)
*
@@ -15,7 +15,8 @@
var { ExtensionCommon } = ChromeUtils.import("resource://gre/modules/ExtensionCommon.jsm");
var { ExtensionSupport } = ChromeUtils.import("resource:///modules/ExtensionSupport.jsm");
var { AddonManager } = ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
-var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
+var Services = globalThis.Services ||
+ ChromeUtils.import("resource://gre/modules/Services.jsm").Services;
function getThunderbirdVersion() {
let parts = Services.appinfo.version.split(".");