Skip to content

Commit

Permalink
- guard against cases where getBookmarkableURLs cannot be acquired
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed May 14, 2019
1 parent 1a6a1bf commit e7192fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App/dtml/manage_page_footer.dtml
Expand Up @@ -3,8 +3,10 @@
<script>
// Helpers for Menu Handling <dtml-var "REQUEST.URL">
var manage_menu = typeof window.parent.frames!="undefined"&&typeof window.parent.frames.manage_menu!="undefined";
<dtml-if "getBookmarkableURLs() and REQUEST.get('method','') == 'GET'">
window.parent.history.replaceState('','Main','<dtml-var URL>')
<dtml-if getBookmarkableURLs>
<dtml-if "REQUEST.get('method','') == 'GET'">
window.parent.history.replaceState('','Main','<dtml-var URL>')
</dtml-if>
</dtml-if>
</script>
</dtml-unless>
Expand Down

0 comments on commit e7192fb

Please sign in to comment.