add current_url method

This commit is contained in:
ainame
2013-07-09 01:40:46 +09:00
parent 45b8361fd4
commit 00a3843305

View File

@@ -93,6 +93,10 @@ module ProMotion
self.webview.stringByEvaluatingJavaScriptFromString(js)
end
def current_url
evaluate('document.URL')
end
# Navigation
def can_go_back; web.canGoBack; end
def can_go_forward; web.canGoForward; end