From 88ab59ac13c33b9c658c60c86a04093bbb238588 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Thu, 29 Jun 2023 21:25:30 -0700 Subject: [PATCH] Add help to globalThis during definition --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index a999a2d..88908ed 100644 --- a/index.html +++ b/index.html @@ -219,14 +219,13 @@ const template = await fetch('/template.html').then(r => r.text()); // For debugging and bulk usage in the DevTools console - function help() { + globalThis.help = function () { console.table({ 'help(): void': 'Print this message.', 'encrypt(plaintext: string, password: string): Promise': 'Encrypt a string.', 'decrypt(content: string, password: string): Promise': 'Decrypt an encrypted string.' }); } - globalThis.help = help; globalThis.encrypt = encrypt; globalThis.decrypt = decrypt; help(); -- 2.47.3