denying browser notification permissions
问题 According to the spec, you can prompt the browser to allow the user to grant or deny browser notifications. Once the user has granted permission, is there a way to programmatically deny that permission too? Calling window.Notification.requestPermission() after they have granted permission does nothing except run the success promise. My goal is to have an On/Off button toggle in the user settings portion of my site. As far as i can tell, there is no way to toggle off once toggled on. 回答1: