瀏覽代碼

fix: enable upload asset on web

Tienson Qin 8 月之前
父節點
當前提交
f4303fdd04
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/main/frontend/commands.cljs

+ 4 - 5
src/main/frontend/commands.cljs

@@ -439,11 +439,10 @@
                        (println "draw file created, " path))
                      text)) "Draw a graph with Excalidraw"])
 
-       (when (util/electron?)
-         ["Upload an asset"
-          [[:editor/click-hidden-file-input :id]]
-          "Upload file types like image, pdf, docx, etc.)"
-          :icon/upload])
+       ["Upload an asset"
+        [[:editor/click-hidden-file-input :id]]
+        "Upload file types like image, pdf, docx, etc.)"
+        :icon/upload]
 
        ["Template" [[:editor/input command-trigger nil]
                     [:editor/search-template]] "Insert a created template here"