lib/ProMotion/web/web_screen_module.rb in ProMotion-2.5.0.beta1 vs lib/ProMotion/web/web_screen_module.rb in ProMotion-2.5.0

- old
+ new

@@ -32,10 +32,16 @@ self.webview end def set_initial_content return unless self.respond_to?(:content) && self.content - self.content.is_a?(NSURL) ? open_url(self.content) : set_content(self.content) + if self.content.is_a?(NSURL) + open_url(self.content) + elsif self.content.is_a?(NSMutableURLRequest) + web.loadRequest self.content + else + set_content(self.content) + end end def set_content(content) content_path = File.join(NSBundle.mainBundle.resourcePath, content)