Commit e33e0de2 authored by Jacob Schatz's avatar Jacob Schatz Committed by Phil Hughes

Checks if Notification API exists before requesting permission.

parent 00deaaaf
......@@ -24,4 +24,5 @@
return
) window
Notification.requestPermission()
\ No newline at end of file
if 'Notification' of window
Notification.requestPermission()
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment