Skip to content

Commit

Permalink
修复自定义卡片模版被重置问题
Browse files Browse the repository at this point in the history
  • Loading branch information
018 committed Apr 27, 2021
1 parent f2e8023 commit a07d518
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
mkdir -p build
zip -r build/zotcard-1.1.3.xpi chrome/* chrome.manifest install.rdf
zip -r build/zotcard-1.1.4.xpi chrome/* chrome.manifest install.rdf
4 changes: 2 additions & 2 deletions chrome/content/zotcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ zotcard.initPref = function (item, beforeDefs, def) {
var pref
var isDef = false
var val = Zotero.Prefs.get('zotcard.' + item)
if (!val) {
if (beforeDefs.indexOf(val)) {
if (val) {
if (beforeDefs.indexOf(val) > -1) {
isDef = true
} else {
pref = val
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RDF:about="urn:mozilla:install-manifest"
em:id="zoterozotcard@018.ai"
em:name="ZotCard"
em:version="1.1.3"
em:version="1.1.4"
em:type="2"
em:iconURL="chrome://zoterozotcard/skin/zotcard.png"
em:icon64URL="chrome://zoterozotcard/skin/zotcard64.png"
Expand Down
4 changes: 2 additions & 2 deletions update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<em:version>1.1.3</em:version>
<em:version>1.1.4</em:version>
<em:targetApplication>
<rdf:Description>
<em:id>zotero@chnm.gmu.edu</em:id>
<em:minVersion>5.0</em:minVersion>
<em:maxVersion>5.*</em:maxVersion>
<em:updateLink>https://github.com/018/zotcard/releases/download/v1.1.3/zotcard-1.1.3.xpi</em:updateLink>
<em:updateLink>https://github.com/018/zotcard/releases/download/v1.1.4/zotcard-1.1.4.xpi</em:updateLink>
</rdf:Description>
</em:targetApplication>
</rdf:Description>
Expand Down

0 comments on commit a07d518

Please sign in to comment.