mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 06:10:01 -04:00
fix server crash (temporary)
This commit is contained in:
parent
98c25278d6
commit
0b7ad50aab
2 changed files with 6 additions and 18 deletions
|
@ -273,7 +273,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Dialog headline="WARNING" open={showSwarmWarning}>
|
<Dialog headline="WARNING" bind:open={showSwarmWarning}>
|
||||||
<h2 class="text-2xl">
|
<h2 class="text-2xl">
|
||||||
TLS has not currently been implemented for the Adrift Swarm. Your
|
TLS has not currently been implemented for the Adrift Swarm. Your
|
||||||
data will not be private, and you should not sign into any
|
data will not be private, and you should not sign into any
|
||||||
|
@ -288,7 +288,7 @@
|
||||||
>
|
>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
||||||
<Dialog headline="Log in to Connect" open={showLogin}>
|
<Dialog headline="Log in to Connect" bind:open={showLogin}>
|
||||||
<TextField name="email" bind:value={email} />
|
<TextField name="email" bind:value={email} />
|
||||||
<TextField
|
<TextField
|
||||||
name="password"
|
name="password"
|
||||||
|
@ -440,21 +440,6 @@
|
||||||
spacer {
|
spacer {
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
}
|
}
|
||||||
#loginpage {
|
|
||||||
padding: 2.5em;
|
|
||||||
}
|
|
||||||
.bigcard {
|
|
||||||
background-color: rgb(var(--m3-scheme-primary-container));
|
|
||||||
color: rgb(var(--m3-scheme-on-primary-container));
|
|
||||||
border-radius: 2rem;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 2rem;
|
|
||||||
text-align: center;
|
|
||||||
padding: 8rem 0 6rem 0;
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
:global(body, html, #app) {
|
:global(body, html, #app) {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
|
@ -75,7 +75,10 @@ export async function answerRtc(data: any, onrespond: (answer: any) => void) {
|
||||||
|
|
||||||
dataChannel.onopen = () => {
|
dataChannel.onopen = () => {
|
||||||
console.log("opened");
|
console.log("opened");
|
||||||
server = new AdriftServer((msg) => dataChannel.send(msg));
|
server = new AdriftServer((msg) => {
|
||||||
|
if (dataChannel.readyState === "open")
|
||||||
|
dataChannel.send(msg)
|
||||||
|
});
|
||||||
};
|
};
|
||||||
dataChannel.onclose = () => {
|
dataChannel.onclose = () => {
|
||||||
console.log("closed");
|
console.log("closed");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue