From 0b346401000f00b5d9abad583adfd0c735a99535 Mon Sep 17 00:00:00 2001 From: xiangyu <3170102889@zju.edu.cn> Date: Thu, 15 Dec 2022 21:08:50 +0800 Subject: [PATCH] change: update.ref -> update.json --- package.json | 2 +- src/prefs.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7866e75..e208d61 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/windingwind/zotero-addon-template#readme", "releasepage": "https://github.com/windingwind/zotero-addon-template/releases/latest/download/zotero-addon-template.xpi", - "updaterdf": "https://raw.githubusercontent.com/windingwind/zotero-addon-template/master/update.rdf", + "updaterdf": "https://raw.githubusercontent.com/windingwind/zotero-addon-template/master/update.json", "dependencies": { "compressing": "^1.5.1", "esbuild": "^0.14.34", diff --git a/src/prefs.ts b/src/prefs.ts index ac2b0d7..4f10cfc 100644 --- a/src/prefs.ts +++ b/src/prefs.ts @@ -1,5 +1,6 @@ -import { Addon, addonName } from "./addon"; +import Addon from "./addon"; import AddonModule from "./module"; +import { addonName } from "../package.json"; class AddonPrefs extends AddonModule { private _window: Window;