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

Make sure that platform specific properties are added before custom deviceready events were called

parent 8865a7e4
Loading
Loading
Loading
Loading
+4 −3
Changes for www/local-notification.js: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -205,10 +205,11 @@ LocalNotification.prototype = {
    oncancel: function (id, state, json) {}
};

var plugin = new LocalNotification();
var plugin  = new LocalNotification(),
    channel = require('cordova/channel');

document.addEventListener('deviceready', function () {
channel.onCordovaReady.subscribe( function () {
    plugin.applyPlatformSpecificOptions();
}, false);
});

module.exports = plugin;