lib/ProMotion/web/web_screen_module.rb in ProMotion-1.0.2 vs lib/ProMotion/web/web_screen_module.rb in ProMotion-1.0.3
- old
+ new
@@ -98,13 +98,14 @@
def refresh; web.reload; end
def stop; web.stopLoading; end
alias :reload :refresh
def open_in_chrome(inRequest)
- # Add pod 'OpenInChrome' to your Rakefile if you want links to open in chrom for users.
+ # Add pod 'OpenInChrome' to your Rakefile if you want links to open in Google Chrome for users.
+ # This will fall back to Safari if the user doesn't have Chrome installed.
chrome_controller = OpenInChromeController.sharedInstance
return open_in_safari(inRequest) unless chrome_controller.isChromeInstalled
- chrome_controller.open_in_chrome(inRequest.URL)
+ chrome_controller.openInChrome(inRequest.URL)
end
def open_in_safari(inRequest)
#Open UIWebView delegate links in Safari.
UIApplication.sharedApplication.openURL(inRequest.URL)