From 1ca5ca192c4b760ddee7f5a89952f0ac5de48af3 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 28 Sep 2025 21:44:02 +1000 Subject: [PATCH] move isMobile() to support js, as it has no jinja2 in it --- internal/js/files_support.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/js/files_support.js b/internal/js/files_support.js index aa71da3..780c3a3 100644 --- a/internal/js/files_support.js +++ b/internal/js/files_support.js @@ -628,3 +628,8 @@ function prevPage() resetNextPrevButtons() return } + +function isMobile() { + try{ document.createEvent("TouchEvent"); return true; } + catch(e){ return false; } +}