Browse Source

update doc

rcmerci 1 year ago
parent
commit
cd8a3dc2e4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/worker/device.cljs

+ 3 - 1
src/main/frontend/worker/device.cljs

@@ -28,7 +28,9 @@
 (defonce *device-private-key (atom nil :validator #(instance? js/CryptoKey %)))
 
 (defn <ensure-device-metadata!
-  "Generate new device entity if not exists"
+  "Generate new device items if not exists.
+  Store in indexeddb.
+  Import to `*device-id`, `*device-public-key`, `*device-private-key`"
   []
   (p/let [device-uuid (<get-item item-key-device-id)]
     (when-not device-uuid