Skip to content

Commit

Permalink
Remove unnecessary Alpine command.
Browse files Browse the repository at this point in the history
This change gets rid of the error in the JS console.
  • Loading branch information
caike committed Mar 13, 2023
1 parent 897cdb5 commit ddab2a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ import Alpine from "../vendor/alpine"

window.Alpine = Alpine

Alpine.start()

let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket,
{
params: { _csrf_token: csrfToken },
dom: {
onBeforeElUpdated(from, to) {
if (from.__x) { Alpine.clone(from.__x, to) }
if (from._x_dataStack) {
window.Alpine.clone(from, to)
}
}
}
})
Expand Down

0 comments on commit ddab2a4

Please sign in to comment.