blob: aac604460a86c7d1e1ce2f97730a76c8f2b7aa14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
(function() {
var config = {
// urlArgs: "bust=" + (new Date()).getTime(), // NOTE: useful for debugging
paths: {
jquery: 'external/jquery',
'jquery-ui': 'external/jquery-ui',
'd3': 'external/d3/d3',
FileSaver: 'external/FileSaver',
caret: 'external/caret',
autocomplete: 'external/autocomplete',
}
}
if (window.is_node) {
// Testing path only
console.log('app: running under node');
config.baseUrl = '../scripts/';
window.rhizi_require_config = config;
} else {
// Main app path
require.config(config);
requirejs(['main'], function(main) {
console.log('starting rhizi logic');
main.main();
});
}
}());
|