enable syntax validation for all users

(by defining aceWorker)
This commit is contained in:
Brian Gough 2016-11-01 14:58:58 +00:00
parent 4c94c027b8
commit 585f8681ea

View file

@ -89,7 +89,8 @@ block content
block requirejs
script(type="text/javascript" src='/socket.io/socket.io.js')
//- don't use cdn for worker
//- don't use cdn for workers
- var aceWorkerPath = buildJsPath(lib('ace'), {cdn:false,fingerprint:false})
- var pdfWorkerPath = buildJsPath('/libs/' + lib('pdfjs') + '/pdf.worker', {cdn:false,fingerprint:false})
//- We need to do .replace(/\//g, '\\/') do that '</script>' -> '<\/script>'
@ -133,10 +134,6 @@ block requirejs
}
};
window.aceFingerprint = "#{fingerprint(jsPath + lib('ace') + '/ace.js')}"
- var aceWorkerPath = user.betaProgram ? buildJsPath(lib('ace'), {cdn:false,fingerprint:false}) : "" // don't use cdn for worker
script(type='text/javascript').
window.aceWorkerPath = "#{aceWorkerPath}";
script(