fix target language check

Fixed target language check
This commit is contained in:
zeheyler 2020-12-13 00:56:00 +03:00
parent ea6ddc7a7c
commit 7eb45899c0

View File

@ -298,10 +298,10 @@ std::pair<bool, std::wstring> Translate(const std::wstring& text, DevTools* devT
{ {
errorCode = 4; errorCode = 4;
} }
}
break; break;
} }
} }
}
// Check selected source language // Check selected source language
if (errorCode == 0 && devTools->SendRequest("DOM.getAttributes", { {"nodeId", sourceLangId} }, root)) if (errorCode == 0 && devTools->SendRequest("DOM.getAttributes", { {"nodeId", sourceLangId} }, root))