We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6958842 + 45600ee commit 2722974Copy full SHA for 2722974
public/img/gogs-hero.png
34.2 KB
public/js/gogs.js
@@ -1281,21 +1281,7 @@ $(document).ready(function () {
1281
1282
// Highlight JS
1283
if (typeof hljs != 'undefined') {
1284
- if (typeof(Worker) !== "undefined") {
1285
- addEventListener('load', function () {
1286
- var code = document.querySelector('code');
1287
- var worker = new Worker('/plugins/highlighter.js');
1288
- worker.onmessage = function (event) {
1289
- code.innerHTML = event.data;
1290
- }
1291
- if (code !== null) {
1292
- worker.postMessage(code.textContent);
1293
1294
- })
1295
- } else {
1296
- hljs.initHighlightingOnLoad()
1297
1298
-
+ hljs.initHighlightingOnLoad();
1299
}
1300
1301
// Dropzone
public/plugins/highlighter.js
0 commit comments