chore: update arguments of sqlite3InitModule

This commit is contained in:
rcmerci
2025-10-04 21:38:57 +08:00
parent 584b980a97
commit 14c240dd5c

View File

@@ -83,8 +83,8 @@
(when-not @*sqlite
(p/let [href (.. js/location -href)
publishing? (string/includes? href "publishing=true")
sqlite (sqlite3InitModule (clj->js {:print js/console.log
:printErr js/console.error}))]
sqlite (sqlite3InitModule (clj->js {:print #(log/info :init-sqlite-module! %)
:printErr #(log/error :init-sqlite-module! %)}))]
(reset! *publishing? publishing?)
(reset! *sqlite sqlite)
nil)))