Improve the connect logic

This commit is contained in:
Kevin Yue
2020-02-20 22:20:28 +08:00
parent 462ed0fe7c
commit c68338c180
5 changed files with 57 additions and 30 deletions

View File

@@ -20,7 +20,6 @@ EnhancedWebView::~EnhancedWebView()
void EnhancedWebView::initialize()
{
QString port = QProcessEnvironment::systemEnvironment().value(ENV_CDP_PORT);
qDebug() << "port:" << port;
cdp->initialize("http://127.0.0.1:" + port + "/json");
}