Skip to content

Commit

Permalink
fix: mixed content error?
Browse files Browse the repository at this point in the history
  • Loading branch information
TetrisIQ committed Jun 7, 2024
1 parent 839bd1e commit 27b02d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
});
let message: string;
function sendMessage() {
if($messages === undefined) {
messages.set([])
}
if (message !== '') {
$messages.push(message);
gun.get('chat').put({ m: JSON.stringify($messages) });
Expand All @@ -31,7 +34,6 @@

<div class="flex flex-col justify-center items-center space-y-1">
<div class="item h-32"><h1 class="text-3xl font-bold underline">SvelteKit / GUN example</h1></div>

{#if $messages !== undefined}
{#each $messages as comment}
<div class="flex my-4 gap-4">
Expand Down

0 comments on commit 27b02d3

Please sign in to comment.