blob: cc475f8bc047ee94cb87d32d8e5ca1e792a9bb14 (
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
|
import Bootstrap from './Bootstrap';
import './settings/personal';
import './settings/admin';
$(document).on('ajaxSend', function(_elm, xhr, settings) {
if (settings.crossDomain === false) {
xhr.setRequestHeader('requesttoken', OC.requestToken);
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
}
});
(function() {
let bootstrap = new Bootstrap();
try {
bootstrap.check();
} catch (err) {
console.warn('Abort JSXC', err);
return;
}
bootstrap.start();
})();
|