Add TypeScript wrapper around legacy notification functionality

This commit is contained in:
Andreas Nedbal 2022-01-03 03:29:12 +01:00 committed by Andreas Nedbal
parent 5337897b23
commit 683657a281
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
export function showErrorNotification(text: string): void {
showNotification(text, false);
}
export function showNotification(text: string, status = true): void {
window['showNotification'](text, status);
}