Skip to content

Commit

Permalink
first-time version check failed because "existing" version will be un…
Browse files Browse the repository at this point in the history
…defined (fixes #200)
  • Loading branch information
retorquere committed May 26, 2015
1 parent a1d7714 commit d6e893b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Zotero.BetterBibTeX.quitObserver =
observerService.removeObserver(@, 'quit-application-requested')

Zotero.BetterBibTeX.version = (version) ->
return '' unless version
v = version.split('.').slice(0, 2).join('.')
@debug("full version: #{version}, canonical version: #{v}")
return v
Expand Down Expand Up @@ -528,7 +529,9 @@ Zotero.BetterBibTeX.init = ->
to #{ZOTERO_CONFIG.VERSION},
BBT #{Zotero.Translate.ItemGetter::serialized.BetterBibTeX || 'initial install'}
to #{@release}".replace(/\s+/, '').trim())
Zotero.Translate.ItemGetter::serialized = {Zotero: ZOTERO_CONFIG.VERSION, BetterBibTeX: @release}
Zotero.Translate.ItemGetter::serialized = {}
Zotero.Translate.ItemGetter::serialized.Zotero = ZOTERO_CONFIG.VERSION
Zotero.Translate.ItemGetter::serialized.BetterBibTeX = @release

Zotero.Translate.ItemGetter::_serialize = (item, isAttachmentID) ->
if isAttachmentID
Expand Down

0 comments on commit d6e893b

Please sign in to comment.