Skip to content

Commit

Permalink
fix: version opt bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyu committed Apr 8, 2022
1 parent d7581b6 commit 3c2682c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions chrome/content/scripts/zoterotag.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Zotero.ZoteroTag = {
version: 012,
version: 12,
versionInfo: "New Feature: Remove after read. Please check Preference.",
versionOpt: function () {
let _rules = Zotero.ZoteroTag.rules();
Expand Down Expand Up @@ -221,14 +221,14 @@ Zotero.ZoteroTag = {
Zotero.ZoteroTag.numberOfUpdatedItems = 0;
},
checkVersion: function () {
let version = Zotero.Prefs.get("zoterotag.version");
Zotero.ZoteroTag.versionOpt();
if (typeof version === "undefined" || version < Zotero.ZoteroTag.version) {
let _version = Zotero.Prefs.get("zoterotag.version");
if (typeof _version === "undefined" || _version < Zotero.ZoteroTag.version) {
Zotero.Prefs.set("zoterotag.version", Zotero.ZoteroTag.version);
Zotero.ZoteroTag.showProgressWindow(
"ZoteroTag Updated",
`${Zotero.ZoteroTag.versionInfo}`
);
Zotero.ZoteroTag.versionOpt();
}
},
updateSelectedEntity: function (operation = "add", group = undefined) {
Expand Down
4 changes: 2 additions & 2 deletions chrome/locale/en-US/overlay.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
<!ENTITY zotero.zoterotag.help.feedback.caption.label "Feedback">
<!ENTITY zotero.zoterotag.help.feedback.label "github">

<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag VERSION 0.1.6">
<!ENTITY zotero.zoterotag.help.releasetime.label "2022-03-23 10:08:52">
<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag VERSION 0.1.7">
<!ENTITY zotero.zoterotag.help.releasetime.label "2022-04-08 15:23:15">
4 changes: 2 additions & 2 deletions chrome/locale/zh-CN/overlay.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
<!ENTITY zotero.zoterotag.help.feedback.caption.label "意见反馈">
<!ENTITY zotero.zoterotag.help.feedback.label "github">

<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag 版本 0.1.6">
<!ENTITY zotero.zoterotag.help.releasetime.label "2022-03-23 10:08:51">
<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag 版本 0.1.7">
<!ENTITY zotero.zoterotag.help.releasetime.label "2022-04-08 15:23:15">
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
RDF:about="urn:mozilla:install-manifest"
em:id="zoterotag@euclpts.com"
em:name="Zotero Tag"
em:version="0.1.6"
em:version="0.1.7"
em:type="2"
em:creator="windingwind"
em:description="One add-on to rule Tags all."
Expand Down
2 changes: 1 addition & 1 deletion update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<em:version>0.1.6</em:version>
<em:version>0.1.7</em:version>
<em:targetApplication>
<rdf:Description>
<em:id>zotero@chnm.gmu.edu</em:id>
Expand Down

0 comments on commit 3c2682c

Please sign in to comment.