mirror of https://github.com/vitalif/phantomjs
Merge branch 'master' of https://github.com/mattn/phantomjs
commit
dd0ed7facd
|
@ -203,7 +203,7 @@ void Phantom::execute(const QString &fileName)
|
||||||
exit(1);
|
exit(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_script = file.readAll();
|
m_script = QString::fromUtf8(file.readAll());
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
m_page.mainFrame()->evaluateJavaScript(m_script);
|
m_page.mainFrame()->evaluateJavaScript(m_script);
|
||||||
|
@ -341,6 +341,8 @@ int main(int argc, char** argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QNetworkProxyFactory::setUseSystemConfiguration(true);
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
app.setWindowIcon(QIcon(":/phantomjs-icon.png"));
|
app.setWindowIcon(QIcon(":/phantomjs-icon.png"));
|
||||||
|
|
Loading…
Reference in New Issue