lib/ProMotion/web/web_screen_module.rb in ProMotion-1.1.2 vs lib/ProMotion/web/web_screen_module.rb in ProMotion-1.2.0
- old
+ new
@@ -77,10 +77,10 @@
def check_content_data
PM.logger.error "Missing #content method in WebScreen #{self.class.to_s}." unless self.respond_to?(:content)
end
def html
- self.webview.stringByEvaluatingJavaScriptFromString("document.documentElement.outerHTML")
+ evaluate("document.documentElement.outerHTML")
end
def evaluate(js)
self.webview.stringByEvaluatingJavaScriptFromString(js)
end