When importing a shared folder to the drive, open this folder directly

This commit is contained in:
yflory
2018-08-23 11:55:14 +02:00
parent 630a2dab78
commit e0b7f3f965
3 changed files with 22 additions and 2 deletions

View File

@@ -42,8 +42,14 @@ define([
if (hash) {
// Add a shared folder!
// XXX password?
Cryptpad.addSharedFolder(secret, function () {
Cryptpad.addSharedFolder(secret, function (id) {
window.CryptPad_newSharedFolder = id;
// Update the hash in the address bar
var ohc = window.onhashchange;
window.onhashchange = function () {};
window.location.hash = "";
window.onhashchange = ohc;
ohc({reset:true});
cb(null, secret);
});
return;