Fix wiki preview (#14515)

Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
Lunny Xiao 2021-01-29 22:37:20 +08:00 committed by GitHub
parent 8ff4f82e05
commit 9569607abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1359,7 +1359,7 @@ function initWikiForm() {
const $editArea = $('.repository.wiki textarea#edit_area'); const $editArea = $('.repository.wiki textarea#edit_area');
let sideBySideChanges = 0; let sideBySideChanges = 0;
let sideBySideTimeout = null; let sideBySideTimeout = null;
if ($editArea.length > 0 && isMobile) { if ($editArea.length > 0 && isMobile()) {
$editArea.css('display', 'inline-block'); $editArea.css('display', 'inline-block');
return; return;
} }