We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1810348 + e7c5bb7 commit 81e2bb0Copy full SHA for 81e2bb0
1.hello-world/10.read-video-pwa/helloworld-pwa.html
@@ -46,11 +46,13 @@ <h1 style="font-size: 1.5em;">Hello World for PWA</h1>
46
}
47
48
(async function() {
49
- Notification.requestPermission().then((result) => {
50
- if (result === 'granted') {
51
- startNotificationLoop();
52
- }
53
- });
+ if(window.Notification) {
+ Notification.requestPermission().then((result) => {
+ if (result === 'granted') {
+ startNotificationLoop();
+ }
54
+ });
55
56
try {
57
const scanner = await (pScanner = pScanner || Dynamsoft.DBR.BarcodeScanner.createInstance());
58
scanner.onFrameRead = results => {
0 commit comments