From c1c140cd59b430e6b985fad221b66b229b21e685 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 21 Jul 2021 12:50:32 +0200 Subject: [PATCH] sneed --- ruqqus/assets/js/all_js.js | 28 ---------------------------- ruqqus/templates/default.html | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/ruqqus/assets/js/all_js.js b/ruqqus/assets/js/all_js.js index f631c1337..61da95d4e 100644 --- a/ruqqus/assets/js/all_js.js +++ b/ruqqus/assets/js/all_js.js @@ -1082,34 +1082,6 @@ comment_edit=function(id){ } - -//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 (window.innerWidth <= 737){ - try { - $('#mobile-prompt').tooltip('show') - $('.tooltip')[0].addEventListener( - 'click', - function(event){ - $('#mobile-prompt').tooltip('hide') - var xhr = new XMLHttpRequest(); - xhr.withCredentials=true; - xhr.open("POST", '/dismiss_mobile_tip', true); - xhr.send(); - } - ) - } catch (error) { - console.error(error); - } - } -} - $('.mention-user').click(function (event) { if (event.which != 1) { diff --git a/ruqqus/templates/default.html b/ruqqus/templates/default.html index c8d14594c..5d93ae5e5 100644 --- a/ruqqus/templates/default.html +++ b/ruqqus/templates/default.html @@ -2,6 +2,34 @@