-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assign
window.Turbo
in @hotwired/turbo-rails/index
With the changes made in the prior commit to pass CI merged, the fact that Turbo and Turbo Rails somehow have differing references to `Turbo` and `window.Turbo`. This commit reverts the test harness change that sets `window.Turbo`, and instead assigns that value as part of the `@hotwired/turbo-rails/index` module: ```diff -import { Turbo } from "@hotwired/turbo-rails" - -window.Turbo = Turbo +import "@hotwired/turbo-rails" ```
- Loading branch information
1 parent
da4576f
commit 1950a13
Showing
6 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails | ||
import { Turbo } from "@hotwired/turbo-rails" | ||
|
||
window.Turbo = Turbo | ||
import "@hotwired/turbo-rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters