chore: added PrimerLive dependencies
This commit is contained in:
parent
77632bedec
commit
e0a15b1a57
6 changed files with 35 additions and 17 deletions
|
|
@ -25,7 +25,10 @@ import topbar from "../vendor/topbar"
|
|||
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
|
||||
let liveSocket = new LiveSocket("/live", Socket, {
|
||||
longPollFallbackMs: 2500,
|
||||
params: {_csrf_token: csrfToken}
|
||||
params: {_csrf_token: csrfToken},
|
||||
hooks: {
|
||||
Prompt: window.Prompt
|
||||
}
|
||||
})
|
||||
|
||||
// Show progress bar on live navigation and form submits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue