Index: src/WebRequestJsObject.cpp |
=================================================================== |
--- a/src/WebRequestJsObject.cpp |
+++ b/src/WebRequestJsObject.cpp |
@@ -76,17 +76,17 @@ namespace |
AdblockPlus::JsValuePtr headersObject = jsEngine->NewObject(); |
for (const auto& header : result.responseHeaders) |
{ |
headersObject->SetProperty(header.first, header.second); |
} |
resultObject->SetProperty("responseHeaders", headersObject); |
- AdblockPlus::JsValueList params; |
+ AdblockPlus::JsConstValueList params; |
params.push_back(resultObject); |
callback->Call(params); |
} |
private: |
AdblockPlus::JsEnginePtr jsEngine; |
std::string url; |
AdblockPlus::HeaderList headers; |