forked from deriv-com/smarttrader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (20 loc) · 806 Bytes
/
Copy pathindex.js
File metadata and controls
26 lines (20 loc) · 806 Bytes
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
window.$ = window.jQuery = require('jquery');
require('babel-polyfill');
require('promise-polyfill');
require('./_common/lib/polyfills/nodelist.foreach');
require('./_common/lib/polyfills/element.closest');
require('@binary-com/binary-style');
require('@binary-com/binary-style/binary.more');
// used by gtm to update page after a new release
window.check_new_release = require('./_common/check_new_release').checkNewRelease;
require('event-source-polyfill');
require('./_common/lib/jquery.sparkline.js');
require('./_common/lib/plugins');
require('jquery.scrollto');
const BinaryLoader = require('./app/base/binary_loader');
document.addEventListener('DOMContentLoaded', BinaryLoader.init);
window.onpageshow = function(event) {
if (event.persisted) {
window.location.reload();
}
};