remove: bootstrap.js license

This commit is contained in:
xiangyu 2023-02-05 16:38:17 +08:00
parent 576c08b5cf
commit 7ee1619b8f

17
addon/bootstrap.js vendored
View File

@ -1,7 +1,9 @@
/* Copyright 2012 Will Shanks. /**
* This Source Code Form is subject to the terms of the Mozilla Public * Most of this code is from Zotero team's official Make It Red example[1]
* License, v. 2.0. If a copy of the MPL was not distributed with this * or the Zotero 7 documentation[2].
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * [1] https://github.com/zotero/make-it-red
* [2] https://www.zotero.org/support/dev/zotero_7_for_developers
*/
if (typeof Zotero == "undefined") { if (typeof Zotero == "undefined") {
var Zotero; var Zotero;
@ -83,7 +85,12 @@ async function startup({ id, version, resourceURI, rootURI }, reason) {
setDefaultPrefs(rootURI); setDefaultPrefs(rootURI);
} }
// Global variables for plugin code /**
* Global variables for plugin code.
* The `_globalThis` is the global root variable of the plugin sandbox environment
* and all child variables assigned to it is globally accessible.
* See `src/index.ts` for details.
*/
const ctx = { const ctx = {
rootURI, rootURI,
}; };