mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Handle hash-bang urls used sometimes in v1
This commit is contained in:
committed by
Jessica Lawshe
parent
8e99142537
commit
baf8b599d7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user