mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-16 19:51:46 +08:00
Helper method to evaluate a javascript string in WebScreen.
This commit is contained in:
@@ -77,6 +77,10 @@ module ProMotion
|
||||
self.webview.stringByEvaluatingJavaScriptFromString("document.body.innerHTML")
|
||||
end
|
||||
|
||||
def evaluate(js)
|
||||
self.webview.stringByEvaluatingJavaScriptFromString(js)
|
||||
end
|
||||
|
||||
# Navigation
|
||||
def can_go_back; web.canGoBack; end
|
||||
def can_go_forward; web.canGoForward; end
|
||||
|
||||
Reference in New Issue
Block a user