Index: shell/src/Main.cpp |
diff --git a/shell/src/Main.cpp b/shell/src/Main.cpp |
index 7013264eda96d53f16e77fe05d0e86032c6a94e3..a792184902d0f1345f795eedd345f6abf7e25731 100644 |
--- a/shell/src/Main.cpp |
+++ b/shell/src/Main.cpp |
@@ -16,6 +16,7 @@ |
*/ |
#include <AdblockPlus.h> |
+#include <AdblockPlus/Platform.h> |
#include <iostream> |
#include <sstream> |
@@ -61,7 +62,10 @@ int main() |
appInfo.application = "standalone"; |
appInfo.applicationVersion = "1.0"; |
appInfo.locale = "en-US"; |
- AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New(appInfo)); |
+ |
+ AdblockPlus::Platform platform; |
+ platform.SetUpJsEngine(appInfo); |
+ AdblockPlus::JsEnginePtr jsEngine = platform.GetJsEngine(); |
auto filterEngine = AdblockPlus::FilterEngine::Create(jsEngine); |
CommandMap commands; |