[Cleanup] Lots of tidying, fill out API object

This commit is contained in:
Beef 2022-10-28 18:50:40 +01:00
parent c98b2c7e25
commit 7610a97b78
11 changed files with 52 additions and 48 deletions

View file

@ -6,7 +6,7 @@ export let socket: WebSocket;
let iLoveBundlers = eval;
export function connectToDebugWS(url: string) {
export function connectToDebugger(url: string) {
if (socket !== undefined && socket.readyState !== WebSocket.CLOSED) {
socket.close();
}

View file

@ -6,6 +6,6 @@ export default function copyText(content: string) {
try {
clipboard.setString(content);
} catch (e) {
throw new Error("Failed to set clipboard content.")
throw new Error("Failed to set clipboard content.");
}
}