diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 69edfa5d6..37bee7bee 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -103,6 +103,8 @@ define([ pad.title = hash.slice(0,8); }); } + pad.href = pad.href.replace(/^https:\/\/beta\.cryptpad\.fr/, + 'https://cryptpad.fr'); return pad; } else { console.error("[Cryptpad.migrateRecentPads] pad had unexpected value"); @@ -210,8 +212,6 @@ define([ return; } - //var pads = getRecentPads(); - var now = new Date(); var href = window.location.href;