mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 07:33:42 -06:00
Type window.nonce (#51200)
This commit is contained in:
parent
26f6b91fd9
commit
8fa951df04
@ -10,8 +10,8 @@ if (window.public_cdn_path) {
|
||||
window.__grafana_public_path__ =
|
||||
__webpack_public_path__.substring(0, __webpack_public_path__.lastIndexOf('build/')) || __webpack_public_path__;
|
||||
|
||||
if ((window as any).nonce) {
|
||||
__webpack_nonce__ = (window as any).nonce;
|
||||
if (window.nonce) {
|
||||
__webpack_nonce__ = window.nonce;
|
||||
}
|
||||
|
||||
// This is an indication to the window.onLoad failure check that the app bundle has loaded.
|
||||
|
1
public/app/types/window.d.ts
vendored
1
public/app/types/window.d.ts
vendored
@ -4,5 +4,6 @@ export declare global {
|
||||
__grafana_public_path__: string;
|
||||
__grafana_load_failed: () => void;
|
||||
public_cdn_path: string;
|
||||
nonce: string | undefined;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user