Skip to content

Commit 47141ca

Browse files
author
zhenshuai
committed
notify ipad bugfix
1 parent eb8418f commit 47141ca

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-wt-genius",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"authors": [
55
"zhenshuai <[email protected]>"
66
],

dist/angular-wt-genius-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-wt-genius.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ angular.module('wt.genius', []);
22
/**
33
* $wtNotify
44
*
5-
* Version: 1.1.0 - 2016-09-23
5+
* Version: 1.1.3 - 2016-09-23
66
* Version: 1.0.0 - 2015-08-25
77
* Anthor: zhenshuai
88
*/
@@ -55,6 +55,9 @@ angular.module('wt.genius', []);
5555
checkPermission : function (onSuccess, onError, onThen) {
5656
//验证权限,设置开启与禁止
5757
if (notify.needsPermission) {
58+
if (!notify.isSupported()) {
59+
return;
60+
}
5861
notify.requestPermission(function () {
5962
result.permissionLevel = 'granted';
6063
result.needsPermission = false;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-wt-genius",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Worktile/Lesschat front end util. ## wt-genius-notify ## wt-genius-localData ## wt-genius-validatorName",
55
"main": "gulpfile.js",
66
"scripts": {

src/wt-notify/wt-notify.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
checkPermission : function (onSuccess, onError, onThen) {
5555
//验证权限,设置开启与禁止
5656
if (notify.needsPermission) {
57+
if (!notify.isSupported()) {
58+
return;
59+
}
5760
notify.requestPermission(function () {
5861
result.permissionLevel = 'granted';
5962
result.needsPermission = false;

0 commit comments

Comments
 (0)