From 5c5d262fdac05efab42386be7afd37754f5471e2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 22 Sep 2021 21:05:11 +0200 Subject: [PATCH] sfd --- files/templates/default.html | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/files/templates/default.html b/files/templates/default.html index 4ca8bc2f2c..1948d17acd 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -854,13 +854,7 @@ } //mobile prompt - if (("standalone" in window.navigator) && // Check if "standalone" property exists - window.navigator.standalone){ // Test if using standalone navigator - - // Web page is loaded via app mode (full-screen mode) - // (window.navigator.standalone is TRUE if user accesses website via App Mode) - - } else { + if (!("standalone" in window.navigator && window.navigator.standalone)){ if (window.innerWidth <= 737){ try { $('#mobile-prompt').tooltip('show') @@ -880,7 +874,7 @@ } } - // Voting + // Voting function post_vote(url, callback) { var xhr = new XMLHttpRequest();