When importing a shared folder to the drive, open this folder directly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user