Revert "Format"

This reverts commit 7e44d6cdb2.
This commit is contained in:
Riftriot 2024-03-15 11:48:25 -05:00
parent 529f943646
commit 420cacd8c9
5 changed files with 152 additions and 158 deletions

View file

@ -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;

View file

@ -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();
});
});