mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
20 lines
484 B
JavaScript
20 lines
484 B
JavaScript
(function bootGrafana() {
|
|
'use strict';
|
|
|
|
var systemLocate = System.locate;
|
|
System.locate = function(load) {
|
|
var System = this;
|
|
return Promise.resolve(systemLocate.call(this, load)).then(function(address) {
|
|
return address + System.cacheBust;
|
|
});
|
|
};
|
|
System.cacheBust = '?bust=' + Date.now();
|
|
|
|
System.import('app/app').then(function(app) {
|
|
app.default.init();
|
|
}).catch(function(err) {
|
|
console.log('Loading app module failed: ', err);
|
|
});
|
|
|
|
})();
|