Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

Commit

Permalink
Merge pull request #431 from javan/fix-progress-bar-when-unsupported
Browse files Browse the repository at this point in the history
Guard against enabling the progress bar in unsupported browsers
  • Loading branch information
dhh committed Nov 10, 2014
2 parents a135613 + c7ddaa2 commit 244e27c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/assets/javascripts/turbolinks.js.coffee
Expand Up @@ -42,6 +42,7 @@ enableTransitionCache = (enable = true) ->
transitionCacheEnabled = enable

enableProgressBar = (enable = true) ->
return unless browserSupportsTurbolinks
if enable
progressBar ?= new ProgressBar 'html'
else
Expand Down

0 comments on commit 244e27c

Please sign in to comment.