mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
better constants for EmberJS
This commit is contained in:
parent
b9394a4967
commit
a13b631a7e
5 changed files with 70 additions and 15 deletions
|
@ -9,7 +9,9 @@
|
|||
//
|
||||
// https://documize.com
|
||||
|
||||
export function initialize( /*application*/ ) {
|
||||
import constants from '../constants/constants';
|
||||
|
||||
export function initialize(application) {
|
||||
// address insecure jquery defaults (kudos: @nathanhammond)
|
||||
$.globalEval = function() {};
|
||||
$.ajaxSetup({
|
||||
|
@ -19,6 +21,9 @@ export function initialize( /*application*/ ) {
|
|||
}
|
||||
});
|
||||
|
||||
let cs = constants.constants;
|
||||
application.register('constants:main', cs);
|
||||
|
||||
Dropzone.autoDiscover = false;
|
||||
CodeMirror.modeURL = "/codemirror/mode/%N/%N.js";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue