Remove hidden hash XXX
This commit is contained in:
parent
b4172676f3
commit
b96079cd44
@ -3386,10 +3386,7 @@ define([
|
|||||||
if (sfId) {
|
if (sfId) {
|
||||||
var sfData = manager.getSharedFolderData(sfId);
|
var sfData = manager.getSharedFolderData(sfId);
|
||||||
var parsed = Hash.parsePadUrl(sfData.href);
|
var parsed = Hash.parsePadUrl(sfData.href);
|
||||||
sframeChan.event('EV_DRIVE_SET_HASH', parsed.hash || '');
|
|
||||||
createShareButton(sfId, $toolbar.find('.cp-app-drive-toolbar-leftside'));
|
createShareButton(sfId, $toolbar.find('.cp-app-drive-toolbar-leftside'));
|
||||||
} else {
|
|
||||||
sframeChan.event('EV_DRIVE_SET_HASH', '');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -97,18 +97,6 @@ define([
|
|||||||
cb(obj);
|
cb(obj);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
sframeChan.on('EV_DRIVE_SET_HASH', function (/*hash*/) {
|
|
||||||
// Update the hash in the address bar
|
|
||||||
// XXX Hidden hash: don't put the shared folder href in the address bar
|
|
||||||
/*
|
|
||||||
if (!Utils.LocalStore.isLoggedIn()) { return; }
|
|
||||||
var ohc = window.onhashchange;
|
|
||||||
window.onhashchange = function () {};
|
|
||||||
window.location.hash = hash || '';
|
|
||||||
window.onhashchange = ohc;
|
|
||||||
ohc({reset:true});
|
|
||||||
*/
|
|
||||||
});
|
|
||||||
Cryptpad.onNetworkDisconnect.reg(function () {
|
Cryptpad.onNetworkDisconnect.reg(function () {
|
||||||
sframeChan.event('EV_NETWORK_DISCONNECT');
|
sframeChan.event('EV_NETWORK_DISCONNECT');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -72,9 +72,6 @@ define([
|
|||||||
cb(obj);
|
cb(obj);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
sframeChan.on('EV_DRIVE_SET_HASH', function () {
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
Cryptpad.onNetworkDisconnect.reg(function () {
|
Cryptpad.onNetworkDisconnect.reg(function () {
|
||||||
sframeChan.event('EV_NETWORK_DISCONNECT');
|
sframeChan.event('EV_NETWORK_DISCONNECT');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user