From 568654855f1820eefc46299ea466621a0648f3a9 Mon Sep 17 00:00:00 2001 From: chip Date: Wed, 4 Nov 2020 16:14:27 +0100 Subject: [PATCH] use of useBankSerice --- phone/src/Phone.tsx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/phone/src/Phone.tsx b/phone/src/Phone.tsx index 0865345..b26b104 100644 --- a/phone/src/Phone.tsx +++ b/phone/src/Phone.tsx @@ -59,6 +59,31 @@ setTimeout(() => { ) }, 1000) +setTimeout(() => { + new MessageEvent("messsage", { + data: { + app: "BANK", + method: "setNotification", + data: { + id: 1, + message: "ahhaha" + } + } + }) +}, 1000) + +setTimeout(() => { + new MessageEvent("messsage", { + data: { + app: "TWITTER", + method: "setNotification", + data: { + id: 1, + message: "ahhaha" + } + } + }) +}, 1000) setTimeout(() => { window.dispatchEvent(