Index: src/WebRequestJsObject.cpp |
=================================================================== |
--- a/src/WebRequestJsObject.cpp |
+++ b/src/WebRequestJsObject.cpp |
@@ -62,17 +62,17 @@ |
return result; |
} |
void Run() |
{ |
AdblockPlus::ServerResponse result = jsEngine->IsConnectionAllowed() ? |
jsEngine->GetWebRequest()->GET(url, headers) : NotAllowedResponse(); |
- AdblockPlus::JsContext context(jsEngine); |
+ AdblockPlus::JsContext context(*jsEngine); |
auto resultObject = jsEngine->NewObject(); |
resultObject.SetProperty("status", result.status); |
resultObject.SetProperty("responseStatus", result.responseStatus); |
resultObject.SetProperty("responseText", result.responseText); |
auto headersObject = jsEngine->NewObject(); |
for (const auto& header : result.responseHeaders) |