diff options
| author | Grant Limberg <glimberg@gmail.com> | 2015-05-21 19:14:49 -0700 |
|---|---|---|
| committer | Grant Limberg <glimberg@gmail.com> | 2015-05-21 19:14:49 -0700 |
| commit | c430d88bd40d178685ac0a2e648d8c4ea675996c (patch) | |
| tree | f69f497428fa34c6389173d39c889563dea9506c /ui/index.html | |
| parent | 9a00366b18bc2bdb3ddf4345edcc7a459eb5ed60 (diff) | |
| parent | d9006712f6ffc975d97097caf2d2b4264405b32c (diff) | |
| download | infinitytier-c430d88bd40d178685ac0a2e648d8c4ea675996c.tar.gz infinitytier-c430d88bd40d178685ac0a2e648d8c4ea675996c.zip | |
Merge branch 'adamierymenko-dev' into android-jni
Conflicts:
.gitignore
Diffstat (limited to 'ui/index.html')
| -rw-r--r-- | ui/index.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ui/index.html b/ui/index.html index 857c7ddb..44edb399 100644 --- a/ui/index.html +++ b/ui/index.html @@ -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 (typeof macgap !== 'undefined') {
+ 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>
|
