Update index.html
This commit is contained in:
parent
43a92cfe68
commit
abb2e5df5c
10
index.html
10
index.html
|
|
@ -15799,6 +15799,7 @@ behaviorRules = {
|
||||||
promptState = null;
|
promptState = null;
|
||||||
mouseIsDown = false;
|
mouseIsDown = false;
|
||||||
isMobile = false;
|
isMobile = false;
|
||||||
|
standaloneType = null;
|
||||||
genericMenuHandler = null;
|
genericMenuHandler = null;
|
||||||
nextElemID = 1;
|
nextElemID = 1;
|
||||||
// detect if mobile
|
// detect if mobile
|
||||||
|
|
@ -15815,6 +15816,11 @@ behaviorRules = {
|
||||||
if (settings.invertscroll === undefined && navigator.platform.toUpperCase().indexOf('MAC')>=0) {
|
if (settings.invertscroll === undefined && navigator.platform.toUpperCase().indexOf('MAC')>=0) {
|
||||||
settings.invertscroll = true;
|
settings.invertscroll = true;
|
||||||
}
|
}
|
||||||
|
// detect if discord activity
|
||||||
|
if (navigator.userAgent.match(/Discord/i)) {
|
||||||
|
standalone = true;
|
||||||
|
standaloneType = "discord";
|
||||||
|
}
|
||||||
mouseType = null;
|
mouseType = null;
|
||||||
function mouseClick(e) {
|
function mouseClick(e) {
|
||||||
if (showingMenu && currentElement !== "lookup") {
|
if (showingMenu && currentElement !== "lookup") {
|
||||||
|
|
@ -19085,6 +19091,10 @@ Cancer, Landmine, Grenade, Smoke Grenade">?</span>
|
||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
document.getElementById("gameDiv").classList.add("mobile");
|
document.getElementById("gameDiv").classList.add("mobile");
|
||||||
}
|
}
|
||||||
|
if (standaloneType === "discord") {
|
||||||
|
document.getElementById("savesButton").style.display = "none";
|
||||||
|
document.getElementById("modsButton").style.display = "none";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue