Procházet zdrojové kódy

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

Sebastián Katzer před 10 roky
rodič
revize
3e43e6ab23
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/windows/LocalNotificationUtil.js

+ 2 - 2
src/windows/LocalNotificationUtil.js

@@ -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);