Sebastián Katzer 11 éve
szülő
commit
f0f3d4c060
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      www/local-notification.js

+ 5 - 0
www/local-notification.js

@@ -271,6 +271,11 @@ exports.registerPermission = function (callback, scope) {
     exec(null, null, 'LocalNotification', 'registerPermission', []);
 };
 
+exports.promptForPermission = function (callback, scope) {
+    console.warn('Depreated: Please use `notification.local.registerPermission` instead.');
+    exports.registerPermission.apply(this, arguments);
+};
+
 /**
  * Occurs when a notification was added.
  *