]> git.codecow.com Git - nano-pow.git/commitdiff
Fix compilation difficulty.
authorChris Duncan <chris@zoso.dev>
Thu, 2 Apr 2026 21:06:41 +0000 (14:06 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 2 Apr 2026 21:06:41 +0000 (14:06 -0700)
test/index.html

index 65f0cf4c6eb9b12f076d028e689aadfcfdfb74ca..1fe9c80bc592edd4d4636dd0263d3019bdf8934f 100644 (file)
@@ -73,7 +73,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' })
                                const type = api
                                api = type.toLowerCase()
                                if (isSelfCheck) {