diff --git a/lib/ProMotion/screen/web_screen_module.rb b/lib/ProMotion/screen/web_screen_module.rb index f085bfb..75d06a7 100644 --- a/lib/ProMotion/screen/web_screen_module.rb +++ b/lib/ProMotion/screen/web_screen_module.rb @@ -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