From: Chris Duncan Date: Mon, 22 Jun 2026 06:12:13 +0000 (-0700) Subject: Fix test page to work with updated exports. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=6b6bc17eb22bba1c097f282d6682a08e9ebe5e64;p=nano-pow.git Fix test page to work with updated exports. --- 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}`) }