lib/ProMotion/web/web_screen_module.rb in ProMotion-2.0.1 vs lib/ProMotion/web/web_screen_module.rb in ProMotion-2.1.0.beta1

- old
+ new

@@ -34,10 +34,12 @@ self.webview end def set_initial_content return unless self.respond_to?(:content) - content.is_a?(NSURL) ? open_url(content) : set_content(content) + current_content = content + return unless current_content + current_content.is_a?(NSURL) ? open_url(current_content) : set_content(current_content) end def set_content(content) content_path = File.join(NSBundle.mainBundle.resourcePath, content)