diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-06 19:26:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 19:26:38 -0400 |
commit | bb70ed737d98abbd6164b66ac5bd667553b312bd (patch) | |
tree | 1899d7adefe3fbf67e6fd26a4da0837898bd6d7a /app/src/main/assets/js/menu.min.js | |
parent | 2586e947f769740dd8cb8bf8b1dd0473b51e50e4 (diff) | |
download | frost-bb70ed737d98abbd6164b66ac5bd667553b312bd.tar.gz frost-bb70ed737d98abbd6164b66ac5bd667553b312bd.tar.bz2 frost-bb70ed737d98abbd6164b66ac5bd667553b312bd.zip |
Dev 1.1.5 - JS fixes & sharing intents (#32)v1.1.5
* Add sharing intents
* Fix up multiple js instances
Diffstat (limited to 'app/src/main/assets/js/menu.min.js')
-rw-r--r-- | app/src/main/assets/js/menu.min.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/src/main/assets/js/menu.min.js b/app/src/main/assets/js/menu.min.js index 4627b847..ce878b88 100644 --- a/app/src/main/assets/js/menu.min.js +++ b/app/src/main/assets/js/menu.min.js @@ -1,16 +1,14 @@ -console.log("Fetching menu") - +if(!window.hasOwnProperty("frost_menu")){ +console.log("Registering frost_menu"),window.frost_menu=!0 ;var viewport=document.querySelector("#viewport"),root=document.querySelector("#root"),y=new MutationObserver(function(e){ viewport.removeAttribute("style"), root.removeAttribute("style") }) - ;y.observe(viewport,{ attributes:!0 }),y.observe(root,{ attributes:!0 }) - ;var x=new MutationObserver(function(e){ var o=document.querySelector(".mSideMenu") ;if(null!==o){ @@ -22,8 +20,8 @@ Frost.handleHtml(document.documentElement.outerHTML) },500) } }) - ;x.observe(document.querySelector("#mJewelNav"),{ childList:!0, subtree:!0 -}),document.querySelector("#bookmarks_jewel").querySelector("a").click();
\ No newline at end of file +}),document.querySelector("#bookmarks_jewel").querySelector("a").click() +}
\ No newline at end of file |