mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2024-10-07 08:32:13 +08:00
refactor
This commit is contained in:
parent
de320ac21c
commit
12356d2d34
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user