diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index b0396773c..f3f0c199f 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -3386,10 +3386,7 @@ define([ if (sfId) { var sfData = manager.getSharedFolderData(sfId); var parsed = Hash.parsePadUrl(sfData.href); - sframeChan.event('EV_DRIVE_SET_HASH', parsed.hash || ''); createShareButton(sfId, $toolbar.find('.cp-app-drive-toolbar-leftside')); - } else { - sframeChan.event('EV_DRIVE_SET_HASH', ''); } diff --git a/www/drive/main.js b/www/drive/main.js index 6e22e6b27..4f5b9daba 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -97,18 +97,6 @@ define([ 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 () { sframeChan.event('EV_NETWORK_DISCONNECT'); }); diff --git a/www/teams/main.js b/www/teams/main.js index cfaae69a2..6c780a8fd 100644 --- a/www/teams/main.js +++ b/www/teams/main.js @@ -72,9 +72,6 @@ define([ cb(obj); }); }); - sframeChan.on('EV_DRIVE_SET_HASH', function () { - return; - }); Cryptpad.onNetworkDisconnect.reg(function () { sframeChan.event('EV_NETWORK_DISCONNECT'); });