Module: Turbo::Session::WebViewDelegateMethods
- Included in:
- Turbo::Session
- Defined in:
- lib/turbo/session/web_view_delegate_methods.rb
Instance Method Summary collapse
-
#webView(webView, didFailJavaScriptEvaluationWithError: error) ⇒ Object
Initial page load failed, this will happen when we couldn’t find Turbo JS on the page.
- #webViewDidInvalidatePage(webView) ⇒ Object
Instance Method Details
#webView(webView, didFailJavaScriptEvaluationWithError: error) ⇒ Object
Initial page load failed, this will happen when we couldn’t find Turbo JS on the page
28 29 30 31 32 |
# File 'lib/turbo/session/web_view_delegate_methods.rb', line 28 def webView(webView, didProposeVisitToLocation: location, withOptions: ) properties = pathConfiguration ? pathConfiguration.propertiesForURL(location) : {} proposal = VisitProposal.alloc.initWithURL(location, options: , properties: properties) delegate.session(self, didProposeVisit: proposal) if delegate end |
#webViewDidInvalidatePage(webView) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/turbo/session/web_view_delegate_methods.rb', line 18 def webViewDidInvalidatePage(webView) if topmostVisitable topmostVisitable.updateVisitableScreenshot topmostVisitable.showVisitableScreenshot topmostVisitable.showVisitableActivityIndicator reload end end |