Skip to content

Commit

Permalink
Update import example in README.md (#477)
Browse files Browse the repository at this point in the history
As raised in #426, Turbo is set on the window by default so the import example is out-of-date
  • Loading branch information
alexdelgado authored Jun 24, 2023
1 parent 5e9bc1f commit 784ca31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Whereas Turbolinks previously just dealt with links, Turbo can now also process
Turbo Drive can be disabled on a per-element basis by annotating the element or any of its ancestors with `data-turbo="false"`. If you want Turbo Drive to be disabled by default, then you can adjust your import like this:

```js
import { Turbo } from "@hotwired/turbo-rails"
import "@hotwired/turbo-rails"
Turbo.session.drive = false
```

Expand Down

0 comments on commit 784ca31

Please sign in to comment.