Update src/scripts/serverNotifications.js

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
Julien Machiels 2020-08-06 23:26:51 +02:00 committed by GitHub
parent 453079fe06
commit 232ccb6b9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ function notifyApp() {
function displayMessage(cmd) {
const args = cmd.Arguments;
if (args.TimeoutMs) {
import('toast').then((toast) => {
import('toast').then(({default: toast}) => {
toast({ title: args.Header, text: args.Text });
});
} else {