浏览代码

chore: update arguments of sqlite3InitModule

rcmerci 2 周之前
父节点
当前提交
14c240dd5c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/frontend/worker/db_worker.cljs

+ 2 - 2
src/main/frontend/worker/db_worker.cljs

@@ -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)))