Remove the domain from the href in store

This commit is contained in:
yflory
2017-01-30 18:52:27 +01:00
parent a9c9d19212
commit 5e69b78334
2 changed files with 29 additions and 6 deletions

View File

@@ -194,10 +194,10 @@ define([
// Creating a new anon drive: import anon pads from localStorage
if (!drive[Cryptpad.storageKey] || !Cryptpad.isArray(drive[Cryptpad.storageKey])) {
var oldStore = Cryptpad.getStore(true);
oldStore.get(Cryptpad.storageKey, function (err, s) {
Cryptpad.getRecentPads(function (err, s) {
drive[Cryptpad.storageKey] = s;
onReady(f, rt.proxy, Cryptpad.storageKey);
});
}, true);
return;
}
onReady(f, rt.proxy, Cryptpad.storageKey);