mirror of https://github.com/vitalif/phantomjs
Start with an empty but sensible document.body object.
parent
1e32c58a77
commit
88d6794065
|
@ -149,6 +149,9 @@ Phantom::Phantom(QObject *parent)
|
|||
m_page.settings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
|
||||
m_page.settings()->setLocalStoragePath(QDesktopServices::storageLocation(QDesktopServices::DataLocation));
|
||||
m_page.settings()->setOfflineStoragePath(QDesktopServices::storageLocation(QDesktopServices::DataLocation));
|
||||
|
||||
// Ensure we have document.body.
|
||||
m_page.mainFrame()->setHtml("<html><body></body></html>");
|
||||
}
|
||||
|
||||
QStringList Phantom::arguments() const
|
||||
|
|
Loading…
Reference in New Issue