From 845e8999b4f17972120c5ccc30ee32ee7eb70450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 15 Dec 2019 19:32:12 +0100 Subject: [PATCH] Fixed mobile TOC orientation listener --- web/script_2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/script_2.js b/web/script_2.js index ff86963..9847cb1 100644 --- a/web/script_2.js +++ b/web/script_2.js @@ -274,7 +274,7 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine isMobile = true; } -var TOC_SCREEN_WIDTH_CUTOFF = 400 +var TOC_SCREEN_WIDTH_CUTOFF = 667 if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { $(`code:contains(ToC)`).html(TOC_MOBILE);