From 9569607abbcf7aee7d8353dc1ff32c9116081851 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 29 Jan 2021 22:37:20 +0800 Subject: [PATCH] Fix wiki preview (#14515) Co-authored-by: Lauris BH --- web_src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index d42827f13b..2bfa691d63 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1359,7 +1359,7 @@ function initWikiForm() { const $editArea = $('.repository.wiki textarea#edit_area'); let sideBySideChanges = 0; let sideBySideTimeout = null; - if ($editArea.length > 0 && isMobile) { + if ($editArea.length > 0 && isMobile()) { $editArea.css('display', 'inline-block'); return; }