diff --git a/1.hello-world/10.read-video-pwa/helloworld-pwa.html b/1.hello-world/10.read-video-pwa/helloworld-pwa.html index 13ee9821..f863d0d3 100644 --- a/1.hello-world/10.read-video-pwa/helloworld-pwa.html +++ b/1.hello-world/10.read-video-pwa/helloworld-pwa.html @@ -46,11 +46,13 @@

Hello World for PWA

} (async function() { - Notification.requestPermission().then((result) => { - if (result === 'granted') { - startNotificationLoop(); - } - }); + if(window.Notification) { + Notification.requestPermission().then((result) => { + if (result === 'granted') { + startNotificationLoop(); + } + }); + } try { const scanner = await (pScanner = pScanner || Dynamsoft.DBR.BarcodeScanner.createInstance()); scanner.onFrameRead = results => {