| Index: src/Notification.cpp |
| diff --git a/src/Notification.cpp b/src/Notification.cpp |
| index 6567777591a6bfa9ac2233cd3346a79ecaa60c2b..d5d6f9d4e27061cd0f028193015c88f932b32870 100644 |
| --- a/src/Notification.cpp |
| +++ b/src/Notification.cpp |
| @@ -69,14 +69,14 @@ NotificationType Notification::GetType() const |
| NotificationTexts Notification::GetTexts() const |
| { |
| - JsValuePtr jsTexts = jsEngine->Evaluate("API.getNotificationTexts")->Call(shared_from_this()); |
| + JsValue jsTexts = jsEngine->Evaluate("API.getNotificationTexts")->Call(*this); |
| NotificationTexts notificationTexts; |
| - JsValuePtr jsTitle = jsTexts->GetProperty("title"); |
| + JsValuePtr jsTitle = jsTexts.GetProperty("title"); |
| if (jsTitle->IsString()) |
| { |
| notificationTexts.title = jsTitle->AsString(); |
| } |
| - JsValuePtr jsMessage = jsTexts->GetProperty("message"); |
| + JsValuePtr jsMessage = jsTexts.GetProperty("message"); |
| if (jsMessage->IsString()) |
| { |
| notificationTexts.message = jsMessage->AsString(); |
| @@ -102,5 +102,5 @@ std::vector<std::string> Notification::GetLinks() const |
| void Notification::MarkAsShown() |
| { |
| - jsEngine->Evaluate("API.markNotificationAsShown")->Call(GetProperty("id")); |
| + jsEngine->Evaluate("API.markNotificationAsShown")->Call(*GetProperty("id")); |
| } |