Skip to content

Commit f5108dc

Browse files
committed
window event to confirm initialization
1 parent bdff8a8 commit f5108dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

public/app/fn_app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,10 @@ export class GrafanaApp {
227227
} catch (error) {
228228
console.error('Failed to start Grafana', error);
229229
window.__grafana_load_failed();
230+
window.dispatchEvent(new CustomEvent('grafana-startup:failed'));
230231
} finally {
231232
stopMeasure('frontend_app_init');
233+
window.dispatchEvent(new CustomEvent('grafana-startup:success'));
232234
}
233235
}
234236
}

0 commit comments

Comments
 (0)