Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (11 sloc) 0.406 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
#include "CurrentUrl.h"
#include "WebPage.h"
#include "WebPageManager.h"

CurrentUrl::CurrentUrl(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}

void CurrentUrl::start() {
  QStringList arguments;
  QVariant result = page()->invokeCapybaraFunction("currentUrl", arguments);
  QString url = result.toString();
  emitFinished(true, url);
}
Something went wrong with that request. Please try again.