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