Skip to content

Commit

Permalink
fix: Fix live_socket import. #416
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Sep 9, 2023
1 parent aba670e commit 898b7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import "phoenix_html"
// Establish Phoenix Socket and LiveView configuration.
import {Socket} from "phoenix"
import {live_socket} from "phoenix_live_view"
import {LiveSocket} from "phoenix_live_view"
import topbar from "../vendor/topbar"

// Show progress bar on live navigation and form submits
Expand Down Expand Up @@ -104,7 +104,7 @@ window.addEventListener("phx:dragover-item", (e) => {

let csrf_token = document.querySelector("meta[name='csrf-token']").getAttribute("content")

let live_socket = new live_socket("/live", Socket, {
let live_socket = new LiveSocket("/live", Socket, {
hooks: Hooks,
dom:{
onBeforeElUpdated(from, to) {
Expand Down

0 comments on commit 898b7f0

Please sign in to comment.