From 100d07b1c73f674223f8d73ee7385316a655d907 Mon Sep 17 00:00:00 2001 From: Todd Miller Date: Thu, 28 Mar 2024 13:42:51 -0400 Subject: [PATCH] Turned of dev logging from dlog(). --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index cf826a4..2d0bef1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ function escapeHtml(html: string): string { } function dlog(...args: any[]) { - console.log(...args); + // console.log(...args); } function log_and_throw(...args: any[]) { @@ -143,7 +143,7 @@ class AnnouncementsData { function jsonToAnnouncementsData(jsonData: any): AnnouncementsData { // Given unchecked `jsonData`, create an AnnouncementsData instance // checking each field as used or as lower level objects use them. - // All parameters should be checked and escaped to make them safe + // All parameters should be checked and escaped to make them safe // for display in the browser. if (!Array.isArray(jsonData.blocks)) { log_and_throw('Bad blocks array.');