diff options
author | Unknwon <u@gogs.io> | 2015-08-28 14:24:05 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-28 14:24:05 +0800 |
commit | a7686e8749f46b13c62c67c7b4fc5dbc0c5a42c3 (patch) | |
tree | 150b15f67361e43a3870dc267bdbf69ef126790d /public/js/gogs.js | |
parent | ff35a37769cbf60cd1522eb05411adbf965c9950 (diff) |
#1203 bundle jquery with gogs
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) { |