Index: src/WebRequestJsObject.cpp |
diff --git a/src/WebRequestJsObject.cpp b/src/WebRequestJsObject.cpp |
index d4288a637725aeb012c09d2857bfdb5304faab6c..7aad0ca25dda4b1d7a417e56bcab4d4bd92a5978 100644 |
--- a/src/WebRequestJsObject.cpp |
+++ b/src/WebRequestJsObject.cpp |
@@ -80,15 +80,6 @@ void JsEngine::ScheduleWebRequest(const v8::FunctionCallbackInfo<v8::Value>& arg |
webRequestParams[2].Call(resultObject); |
}; |
- if (jsEngine->webRequestLegacy) |
- { |
- std::thread([jsEngine, url, headers, getCallback] |
- { |
- getCallback(jsEngine->webRequestLegacy->GET(url, headers)); |
- }).detach(); |
- return; |
- } |
- |
jsEngine->webRequest->GET(url, headers, getCallback); |
} |