Commit f0f3d4c0 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Add alias

parent eb4f357d
Loading
Loading
Loading
Loading
+5 −0
Changes for www/local-notification.js: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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.
 *