mirror of https://github.com/xwiki-labs/cryptpad
fix hacky detection of secure context
This commit is contained in:
parent
8c8f7e4605
commit
6f9d438d4d
www/common
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue