mirror of
https://github.com/Discreetly/frontend.git
synced 2026-01-09 12:58:03 -05:00
fix room not set, fix cloudflare prerender
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
messageStore,
|
||||
rateLimitStore,
|
||||
selectedServer,
|
||||
configStore
|
||||
configStore,
|
||||
currentRoomsStore
|
||||
} from '$lib/stores';
|
||||
import { Experiences } from '$lib/types';
|
||||
import { getEpochFromTimestamp, getTimestampFromEpoch, updateMessages } from '$lib/utils';
|
||||
@@ -67,6 +68,9 @@
|
||||
}
|
||||
|
||||
function updateEpoch() {
|
||||
if ($currentSelectedRoom === undefined) {
|
||||
$currentSelectedRoom = $currentRoomsStore[0];
|
||||
}
|
||||
currentEpoch = Math.floor(Date.now() / $currentSelectedRoom.rateLimit!);
|
||||
timeLeftInEpoch = (
|
||||
($currentSelectedRoom.rateLimit! -
|
||||
|
||||
@@ -16,7 +16,7 @@ const config = {
|
||||
// See below for an explanation of these options
|
||||
routes: {
|
||||
include: ['/*'],
|
||||
exclude: ['<all>']
|
||||
exclude: ['<files>', '<prerendereed>']
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user