mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-21 10:01:46 +00:00
Hide unneeded menus in MacGap.
This commit is contained in:
parent
ac629150ac
commit
e0313455e7
@ -14,6 +14,7 @@
|
||||
<body><div style="width: 100%; height: 100%;" id="main"></div></body>
|
||||
<script src="main.js"></script>
|
||||
<script>
|
||||
/* Windows hacks */
|
||||
function isIE() {
|
||||
var myNav = navigator.userAgent.toLowerCase();
|
||||
return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
|
||||
@ -35,5 +36,23 @@ if (ieVersion !== false) {
|
||||
window.onresize = resizeMiddleScrollClasses;
|
||||
}
|
||||
}
|
||||
|
||||
/* MacGap hacks */
|
||||
if (macgap) {
|
||||
if (macgap.menu) {
|
||||
var tmp = macgap.menu.getItem("Help");
|
||||
if (tmp)
|
||||
tmp.remove();
|
||||
tmp = macgap.menu.getItem("Format");
|
||||
if (tmp)
|
||||
tmp.remove();
|
||||
tmp = macgap.menu.getItem("View");
|
||||
if (tmp)
|
||||
tmp.remove();
|
||||
tmp = macgap.menu.getItem("File");
|
||||
if (tmp)
|
||||
tmp.remove();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user