Fixed last broken link probably

This commit is contained in:
2022-03-14 15:45:12 +01:00
parent ec4d225c01
commit 3ea0971a2f
5 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { createRoomEventStream, Database, getLoggedUser } from '../index.js'
import { BASE_URL, createRoomEventStream, Database, getLoggedUser } from '../index.js'
import { addTooltipElementListener, resetTooltip, setTooltipText } from './tooltip.js'
async function renderWidget(elSeatMap, seats) {
@@ -67,7 +67,7 @@ export async function createSeatWidget($roomGrid, roomId) {
// Listener for takeing or leaving a seat
$seat.addEventListener('click', async () => {
if (!user) {
location.href = '/login.html'
location.href = `${BASE_URL}/`
return
}