From 6b6bc17eb22bba1c097f282d6682a08e9ebe5e64 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 21 Jun 2026 23:12:13 -0700 Subject: [PATCH] Fix test page to work with updated exports. --- test/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.html b/test/index.html index 4913c1c..af7fbb3 100644 --- a/test/index.html +++ b/test/index.html @@ -11,15 +11,15 @@ SPDX-License-Identifier: GPL-3.0-or-later try { let NanoPow, Cache, stats try { - ({ NanoPow } = await import('../dist/index.js')) + NanoPow = await import('../dist/index.js') } catch (err) { console.warn(err) try { - ({ NanoPow } = await import('https://unpkg.com/nano-pow@5.1/dist/index.js')) + NanoPow = await import('https://unpkg.com/nano-pow@5.1/dist/index.js') } catch (err) { console.warn(err) try { - ({ NanoPow } = await import('https://cdn.jsdelivr.net/npm/nano-pow@5.1/dist/index.js')) + NanoPow = await import('https://cdn.jsdelivr.net/npm/nano-pow@5.1/dist/index.js') } catch (err) { throw new Error(`Failed to load NanoPow ${err}`) } -- 2.52.0