Index: src/FilterEngine.cpp |
=================================================================== |
--- a/src/FilterEngine.cpp |
+++ b/src/FilterEngine.cpp |
@@ -138,6 +138,11 @@ |
jsEngine->Evaluate(jsSources[i + 1], jsSources[i]); |
} |
+bool FilterEngine::IsInitialized() const |
+{ |
+ return jsEngine->Evaluate("_abpInitialized")->AsBool(); |
+} |
+ |
FilterPtr FilterEngine::GetFilter(const std::string& text) |
{ |
JsValuePtr func = jsEngine->Evaluate("API.getFilterFromText"); |