Merge pull request '„assets/js/app.js“ ändern' (#207) from devel into main

Reviewed-on: #207
This commit is contained in:
inhji 2023-07-13 10:28:53 +02:00
commit 88b9392c56

View file

@ -21,13 +21,10 @@ import "phoenix_html"
import { Socket } from "phoenix"
import { LiveSocket } from "phoenix_live_view"
import topbar from "../vendor/topbar"
import lolight from "../vendor/lolight"
import React from "react"
import { createRoot } from 'react-dom/client'
import KBar from "./kbar"
lolight("pre code")
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket, { params: { _csrf_token: csrfToken } })