formatting

This commit is contained in:
MotorTruck1221 2024-03-16 01:22:23 -06:00
parent 8b99bcc6a8
commit c7b158fd57
No known key found for this signature in database
GPG key ID: 06901A625432AC21
8 changed files with 170 additions and 166 deletions

View file

@ -1,7 +1,11 @@
import { FaAngleDown } from "react-icons/fa"; import { FaAngleDown } from "react-icons/fa";
import { useState, useEffect } from "preact/hooks" import { useState, useEffect } from "preact/hooks";
import { changeTransport } from "../../util/transports.ts"; 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 { interface Option {
id: string; id: string;

View file

@ -19,7 +19,7 @@ function uninstallServiceWorkers() {
} }
function registerServiceWorker() { function registerServiceWorker() {
if ('serviceWorker' in navigator) { if ("serviceWorker" in navigator) {
navigator.serviceWorker navigator.serviceWorker
.register("/sw.js", { .register("/sw.js", {
scope: "/~/" scope: "/~/"