fix hacky detection of secure context

This commit is contained in:
ansuz 2019-09-09 17:53:57 +02:00
parent 8c8f7e4605
commit 6f9d438d4d
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ define(['/api/config'], function (ApiConfig) {
var document = window.document;
var isSupported = Module.isSupported = function () {
return typeof(window.Notification) === 'function' && window.location.protocol === 'https:';
return typeof(window.Notification) === 'function' && window.isSecureContext;
};
var hasPermission = Module.hasPermission = function () {