From 784ca31f72679ec58ad0b6c4821a99bfd78216b9 Mon Sep 17 00:00:00 2001 From: Alex Delgado Date: Sat, 24 Jun 2023 06:06:56 -0500 Subject: [PATCH] Update `import` example in README.md (#477) As raised in #426, Turbo is set on the window by default so the import example is out-of-date --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a7e99d61..fda26a9e 100644 --- a/README.md +++ b/README.md @@ -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 ```