Hack to manually update from repo on upgrade to 1.0.3
This commit is contained in:
parent
8188b9756c
commit
86cb79d455
|
@ -203,6 +203,16 @@ Zotero.Schema = new function(){
|
|||
* since the last check
|
||||
**/
|
||||
function updateScrapersRemote(force, callback) {
|
||||
// Little hack to manually update from repo on upgrade to 1.0.3
|
||||
if (!force) {
|
||||
var syncTargetVersion = 1; // increment this when releasing new version that requires it
|
||||
var syncVersion = _getDBVersion('sync');
|
||||
if (syncVersion < syncTargetVersion) {
|
||||
_updateDBVersion('sync', syncTargetVersion);
|
||||
force = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!force){
|
||||
if (_remoteUpdateInProgress) {
|
||||
Zotero.debug("A remote update is already in progress -- not checking repository");
|
||||
|
|
Loading…
Reference in New Issue
Block a user