From 7ee1619b8f0025cca35015822676d612ca17431b Mon Sep 17 00:00:00 2001 From: xiangyu <3170102889@zju.edu.cn> Date: Sun, 5 Feb 2023 16:38:17 +0800 Subject: [PATCH] remove: bootstrap.js license --- addon/bootstrap.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/addon/bootstrap.js b/addon/bootstrap.js index 4081476..7045b97 100644 --- a/addon/bootstrap.js +++ b/addon/bootstrap.js @@ -1,7 +1,9 @@ -/* Copyright 2012 Will Shanks. - * This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ +/** + * Most of this code is from Zotero team's official Make It Red example[1] + * or the Zotero 7 documentation[2]. + * [1] https://github.com/zotero/make-it-red + * [2] https://www.zotero.org/support/dev/zotero_7_for_developers + */ if (typeof Zotero == "undefined") { var Zotero; @@ -83,7 +85,12 @@ async function startup({ id, version, resourceURI, rootURI }, reason) { 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 = { rootURI, };