aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-01-29 22:37:20 +0800
committerGitHub <noreply@github.com>2021-01-29 22:37:20 +0800
commit9569607abbcf7aee7d8353dc1ff32c9116081851 (patch)
tree0f90c19fbcabca3e20a243acececd0643fdc0710
parent8ff4f82e059c16cfa237e04977b9a033049205fb (diff)
downloadgitea-9569607abbcf7aee7d8353dc1ff32c9116081851.tar.gz
gitea-9569607abbcf7aee7d8353dc1ff32c9116081851.zip
Fix wiki preview (#14515)
Co-authored-by: Lauris BH <lauris@nix.lv>
-rw-r--r--web_src/js/index.js2
1 files changed, 1 insertions, 1 deletions
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;
}