5 lines
237 B
JavaScript
5 lines
237 B
JavaScript
// Bypasses `notificationIsDenied` test in creepsjs's 'Like Headless' sections
|
|
const isSecure = document.location.protocol.startsWith('https')
|
|
if (isSecure){
|
|
Object.defineProperty(Notification, 'permission', {get: () => 'default'})
|
|
} |