Add CDP_PORT

This commit is contained in:
Kevin Yue
2020-02-15 20:43:21 +08:00
parent 482012098e
commit 2a7230a277
3 changed files with 4 additions and 2 deletions

View File

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