Index: src/FilterEngine.cpp |
diff --git a/src/FilterEngine.cpp b/src/FilterEngine.cpp |
index eed08b9a8c467749609a0e63186ab603fec66eda..0acb34b3860d6e8e56604ccd0c2b0ff45f6ef77d 100644 |
--- a/src/FilterEngine.cpp |
+++ b/src/FilterEngine.cpp |
@@ -446,7 +446,11 @@ void FilterEngine::ShowNotification(const ShowNotificationCallback& callback, |
if (params.size() < 1) |
return; |
- callback(Notification::JsValueToNotification(params[0])); |
+ if (!params[0]->IsObject()) |
+ { |
+ return; |
+ } |
+ callback(NotificationPtr(new Notification(params[0]))); |
} |