[Cleanup] Lots of tidying, fill out API object
This commit is contained in:
parent
c98b2c7e25
commit
7610a97b78
11 changed files with 52 additions and 48 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue