Show upgrade prompt for connector pings from below a certain version

Shows a prompt once per restart or once per day, whichever is longer,
with an option to not show again for a month. Can be disabled completely
by setting extensions.zotero.showConnectorVersionWarning to false.

Currently prompts for connector versions below 5.0.35.

This is a temporary solution for #1489 until the connector checks and
warns on its own when it's outdated and most people are on a version
that does that (particularly Safari users, who don't auto-upgrade).
This commit is contained in:
Dan Stillman 2018-04-29 04:53:00 -04:00
parent 6b4bce8754
commit 17b4c2e98e
3 changed files with 102 additions and 0 deletions

View file

@ -13,6 +13,7 @@ var ZOTERO_CONFIG = {
STREAMING_URL: 'wss://stream.zotero.org/',
RECOGNIZE_URL: 'https://recognize.zotero.org/',
API_VERSION: 3,
CONNECTOR_MIN_VERSION: '5.0.35', // show upgrade prompt for requests from below this version
PREF_BRANCH: 'extensions.zotero.',
BOOKMARKLET_ORIGIN: 'https://www.zotero.org',
HTTP_BOOKMARKLET_ORIGIN: 'http://www.zotero.org',