boot.js 484 B

12345678910111213141516171819
  1. (function bootGrafana() {
  2. 'use strict';
  3. var systemLocate = System.locate;
  4. System.locate = function(load) {
  5. var System = this;
  6. return Promise.resolve(systemLocate.call(this, load)).then(function(address) {
  7. return address + System.cacheBust;
  8. });
  9. };
  10. System.cacheBust = '?bust=' + Date.now();
  11. System.import('app/app').then(function(app) {
  12. app.default.init();
  13. }).catch(function(err) {
  14. console.log('Loading app module failed: ', err);
  15. });
  16. })();