mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Handle hash-bang urls used sometimes in v1
This commit is contained in:
parent
8e99142537
commit
baf8b599d7
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
script(type="text/javascript").
|
||||
if (window.location.hash) {
|
||||
setTimeout(function(){
|
||||
tabID = window.location.hash.replace('#', '')
|
||||
tabID = window.location.hash.replace(/#!?/, '')
|
||||
tab = document.getElementById(tabID)
|
||||
if (tab && typeof(tab) != 'undefined' && tab != null) {
|
||||
tab.setAttribute('active', true)
|
||||
|
|
Loading…
Reference in a new issue