ext/standalone/sunscraperworker.cpp in sunscraper-1.1.0.beta2 vs ext/standalone/sunscraperworker.cpp in sunscraper-1.1.0.beta3

- old
+ new

@@ -33,9 +33,11 @@ QWebPage *SunscraperWorker::initializeWebPage(unsigned queryId) { Q_ASSERT(_webPages[queryId] == NULL); QWebPage *webPage = new QWebPage(this); + webPage->settings()->setAttribute(QWebSettings::LocalStorageEnabled, true); + connect(webPage->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(attachAPI())); _webPages[queryId] = webPage;