Compare commits

..

No commits in common. "e41c7a086e7a5dfd35ba84082a1466c6f127819a" and "cc20ddfd2a3e77be9b47811a16dbcc853b55ee32" have entirely different histories.

2 changed files with 5 additions and 6 deletions

View file

@ -258,8 +258,7 @@ kbd {
}
}, 1000);
const versionFetchAddress = window.location.href.replace("127.0.0.1", "localhost").includes("//localhost:") ? "http://localhost:38194/api/version" : "https://multiprobe.eusv.net/api/version";
fetch(versionFetchAddress, { method: "post" }).then(response => {
fetch(`http://localhost:39194/api/version`, { method: "post" }).then(response => {
console.log("hi");
response.text().then(versionNumberRaw => {
const versionNumber = parseInt(versionNumberRaw);
@ -443,7 +442,7 @@ kbd {
function doConnect(apiKey) {
const Buffer = getBufferClass();
ws = new WebSocket(window.location.href.includes("//localhost:") ? "ws://localhost:38195" : "wss://ws.eusv.net/t00mp");
ws = new WebSocket(window.location.href.includes("//localhost:") ? "ws://localhost:39195" : "wss://ws.eusv.net/t00mp");
let keepAliveInterval;
ws.onopen = () => {
otherCursors.innerHTML = "";
@ -738,7 +737,7 @@ kbd {
doNotButton.disabled = true;
title.innerText = "Authenticating...";
fetch(window.location.href.replace("127.0.0.1", "localhost").includes("//localhost:") ? "http://localhost:38194/api/login" : "https://multiprobe.eusv.net/api/login", {
fetch(window.location.href.replace("127.0.0.1", "localhost").includes("//localhost:") ? "http://localhost:39194/api/login" : "https://multiprobe.eusv.net/api/login", {
method: "POST",
body: `username=${encodeURIComponent(username.value)}&password=${encodeURIComponent(password.value)}`,
headers: {

View file

@ -8,8 +8,8 @@
"dev": "nodemon --watch './**/*.ts' index.ts",
"build": "npm-run-all build:*",
"build:build": "ncc build index.ts -o build",
"buildd:mangle": "ts-node ./tooling/mangle.ts",
"buildd:cleanup": "ts-node ./tooling/cleanup.ts"
"build:mangle": "ts-node ./tooling/mangle.ts",
"build:cleanup": "ts-node ./tooling/cleanup.ts"
},
"keywords": [],
"author": "tgpholly",