avoid triggering a warning when using the Notifications API in an insecure context
This commit is contained in:
1 parent
c7cea7fae3
commit
c9be2fae36
1 file changed
+1
-1
@@ -6,7 +6,7 @@ define(['/api/config'], function (ApiConfig) {
|
||||
|
||||
|
||||
var isSupported = Module.isSupported = function () {
|
||||
return typeof(window.Notification) === 'function';
|
||||
return typeof(window.Notification) === 'function' && window.location.protocol === 'https:';
|
||||
};
|
||||
|
||||
var hasPermission = Module.hasPermission = function () {
|
||||
|
||||
Reference in new issue
Block a user