From 4aa1e1158aaf4ec9dcc62eb0dc1f6d800859ab04 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 9 Jul 2026 22:23:20 -0700 Subject: [PATCH] Display debug output on initial WASM compilation. --- test/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.html b/test/index.html index 7e3269c..f6b41d0 100644 --- a/test/index.html +++ b/test/index.html @@ -37,7 +37,7 @@ SPDX-License-Identifier: GPL-3.0-or-later try { ({ Cache, stats } = await import('https://cdn.jsdelivr.net/npm/nano-pow@5.1/dist/utils/index.js')) } catch (err) { - throw new Error(`Failed to load NanoPow ${err}`) + throw new Error(`Failed to load NanoPow utilities ${err}`) } } } @@ -72,7 +72,7 @@ SPDX-License-Identifier: GPL-3.0-or-later async function run (size, difficulty, effort, api, isOutputShown, isDebug, isSelfCheck) { // Generate once on load to compile shaders and initialize buffers - await NanoPow.work_generate(random(), { api, difficulty: '0' }) + await NanoPow.work_generate(random(), { api, difficulty: '0', debug: isDebug}) const type = api api = type.toLowerCase() if (isSelfCheck) { -- 2.52.0