don't merge this, it's very wrong

pull/1/head
ansuz 5 years ago
parent df6e12877b
commit f4f4e0011f

@ -1704,6 +1704,11 @@ define([
// Check for CryptPad updates // Check for CryptPad updates
var urlArgs = newUrlArgs || (Config.requireConf ? Config.requireConf.urlArgs : null); var urlArgs = newUrlArgs || (Config.requireConf ? Config.requireConf.urlArgs : null);
if (!urlArgs) { return; } if (!urlArgs) { return; }
console.log(newUrlArgs, urlArgs, currentVersion);
if (newUrlArgs !== currentVersion) { return true; }
var arr = /ver=([0-9.]+)(-[0-9]*)?/.exec(urlArgs); var arr = /ver=([0-9.]+)(-[0-9]*)?/.exec(urlArgs);
var ver = arr[1]; var ver = arr[1];
if (!ver) { return; } if (!ver) { return; }

Loading…
Cancel
Save