2023-04-27 11:20:37 -05:00
|
|
|
import './core/trustedTypePolicies';
|
2021-02-01 03:13:09 -06:00
|
|
|
declare let __webpack_public_path__: string;
|
2021-04-26 04:38:24 -05:00
|
|
|
declare let __webpack_nonce__: string;
|
2021-02-01 03:13:09 -06:00
|
|
|
|
2021-11-08 09:13:37 -06:00
|
|
|
// Check if we are hosting files on cdn and set webpack public path
|
2021-04-27 11:34:56 -05:00
|
|
|
if (window.public_cdn_path) {
|
|
|
|
__webpack_public_path__ = window.public_cdn_path;
|
2021-02-01 03:13:09 -06:00
|
|
|
}
|
2019-12-05 01:30:39 -06:00
|
|
|
|
2021-04-25 13:17:35 -05:00
|
|
|
// This is a path to the public folder without '/build'
|
2021-04-27 11:34:56 -05:00
|
|
|
window.__grafana_public_path__ =
|
2021-04-25 13:17:35 -05:00
|
|
|
__webpack_public_path__.substring(0, __webpack_public_path__.lastIndexOf('build/')) || __webpack_public_path__;
|
|
|
|
|
2022-06-22 03:28:05 -05:00
|
|
|
if (window.nonce) {
|
|
|
|
__webpack_nonce__ = window.nonce;
|
2021-04-26 04:38:24 -05:00
|
|
|
}
|
|
|
|
|
2021-11-08 09:13:37 -06:00
|
|
|
// This is an indication to the window.onLoad failure check that the app bundle has loaded.
|
|
|
|
window.__grafana_app_bundle_loaded = true;
|
|
|
|
|
2021-02-01 03:13:09 -06:00
|
|
|
import app from './app';
|
2017-10-01 13:02:25 -05:00
|
|
|
app.init();
|