Commit 3e43e6ab by Sebastián Katzer

Fix "unable to get property 'apply' of undefined or null reference"

parent def76af8
......@@ -189,7 +189,7 @@ exports.buildToastTemplate = function (options) {
// template with Image
if (imageNode !== '') {
templateName = "ToastImageAndText";
};
}
} else {
imageNode = "";
}
......@@ -390,7 +390,7 @@ exports.fireEvent = function (event, notification) {
args = [event, state];
}
if (this.isReady) {
if (this.isReady && plugin) {
plugin.fireEvent.apply(plugin, args);
} else {
this.eventQueue.push(args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment