diff --git a/js/viewer/viewer.js b/js/viewer/viewer.js index a1ae922c9..8bdf39501 100644 --- a/js/viewer/viewer.js +++ b/js/viewer/viewer.js @@ -107,22 +107,6 @@ var odfViewer = { $('#app-content #controls').addClass('hidden'); $('#app-content').append($iframe); - window.location.assign(window.location.href + '#richdocuments'); - - window.addEventListener('hashchange', function(e) { - // handle double hash (eg: ##richdocuments) - var hash = window.location.hash.replace(/#/g, ''); - // unload - if (hash !== 'richdocuments') { - odfViewer.onClose(); - } - // load - else if (hash === 'richdocuments' && $('#richdocumentsframe').length === 0) { - $('#app-content #controls').addClass('hidden'); - $('#app-navigation').addClass('hidden'); - $('#app-content').append($iframe); - } - }); }, onClose: function() {