index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
public
/
js
/
gogs.js
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'public/js/gogs.js')
-rw-r--r--
public/js/gogs.js
4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 72fc48f6..34bd8406 100644
--- a/
public/js/gogs.js
+++ b/
public/js/gogs.js
@@ -409,7 +409,9 @@ $(document).ready(function () {
});
// Highlight JS
- hljs.initHighlightingOnLoad();
+ if (typeof hljs != 'undefined') {
+ hljs.initHighlightingOnLoad();
+ }
// Dropzone
if ($('#dropzone').length > 0) {