fix: 判断是否支持 window.Notification

dev/mobile
Lei OT 2 years ago
parent d884b35bf1
commit ee0ef2789e

@ -28,7 +28,6 @@ function AuthApp() {
useEffect(() => {
if (!("Notification" in window)) {
alert("This browser does not support desktop notification");
return false;
} else {
Notification.requestPermission();
}

Loading…
Cancel
Save