From f4f4e0011f43b1b8293506d6a80581cf2780de3f Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 20 Apr 2020 12:32:07 -0400 Subject: [PATCH] don't merge this, it's very wrong --- www/common/cryptpad-common.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 677243399..5ddf0f059 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1704,6 +1704,11 @@ define([ // Check for CryptPad updates var urlArgs = newUrlArgs || (Config.requireConf ? Config.requireConf.urlArgs : null); if (!urlArgs) { return; } + + console.log(newUrlArgs, urlArgs, currentVersion); + + if (newUrlArgs !== currentVersion) { return true; } + var arr = /ver=([0-9.]+)(-[0-9]*)?/.exec(urlArgs); var ver = arr[1]; if (!ver) { return; }