This commit is contained in:
Ibby Hadeed 2017-05-09 18:21:46 -04:00
parent de320ac21c
commit 12356d2d34

View File

@ -8,7 +8,7 @@ export class PLNObject {
private _objectInstance: any; private _objectInstance: any;
constructor(title: string, options: LocalNotificationOptions) { constructor(title: string, options: LocalNotificationOptions) {
if (checkAvailability('Notification') === true) { if (checkAvailability(PhonegapLocalNotifications.pluginRef, null, PhonegapLocalNotifications.pluginName) === true) {
this._objectInstance = new Notification(title, options); this._objectInstance = new Notification(title, options);
} }
} }