parent
529f943646
commit
420cacd8c9
5 changed files with 152 additions and 158 deletions
|
|
@ -1,11 +1,7 @@
|
|||
import { FaAngleDown } from "react-icons/fa";
|
||||
import { useState, useEffect } from "preact/hooks";
|
||||
import { useState, useEffect } from "preact/hooks"
|
||||
import { changeTransport } from "../../util/transports.ts";
|
||||
const wispUrl =
|
||||
localStorage.getItem("wispUrl") ||
|
||||
(location.protocol === "https:" ? "wss://" : "ws://") +
|
||||
location.host +
|
||||
"/wisp/";
|
||||
const wispUrl = localStorage.getItem("wispUrl") || (location.protocol === "https:" ? "wss://" : "ws://") + location.host + "/wisp/";
|
||||
|
||||
interface Option {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ export default function Routes() {
|
|||
scope: "/~/"
|
||||
})
|
||||
.then(() => {
|
||||
console.log(
|
||||
"Service worker registered successfully setting transport"
|
||||
);
|
||||
console.log("Service worker registered successfully setting transport");
|
||||
setTransport();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue