Skip to content

Commit 31e12d9

Browse files
committed
chore: update for zotero 8
fix: #65
1 parent a8299d9 commit 31e12d9

File tree

11 files changed

+2106
-7293
lines changed

11 files changed

+2106
-7293
lines changed

addon/bootstrap.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable no-undef */
2-
31
/**
42
* Most of this code is from Zotero team's official Make It Red example[1]
53
* or the Zotero 7 documentation[2].
@@ -58,19 +56,12 @@ function shutdown({ id, version, resourceURI, rootURI }, reason) {
5856
return;
5957
}
6058

61-
if (typeof Zotero === "undefined") {
62-
Zotero = Components.classes["@zotero.org/Zotero;1"].getService(
63-
Components.interfaces.nsISupports,
64-
).wrappedJSObject;
65-
}
6659
Zotero.__addonInstance__?.hooks.onShutdown();
6760

6861
Cc["@mozilla.org/intl/stringbundle;1"]
6962
.getService(Components.interfaces.nsIStringBundleService)
7063
.flushBundles();
7164

72-
Cu.unload(`${rootURI}/chrome/content/scripts/__addonRef__.js`);
73-
7465
if (chromeHandle) {
7566
chromeHandle.destruct();
7667
chromeHandle = null;

addon/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"id": "__addonID__",
1515
"update_url": "__updateURL__",
1616
"strict_min_version": "6.999",
17-
"strict_max_version": "7.1.*"
17+
"strict_max_version": "8.0.*"
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)