mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-25 01:31:37 +08:00
add current_url method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user