Browse Source

fix: don't run file sync onboarding on web

Tienson Qin 3 tháng trước cách đây
mục cha
commit
489a88df78
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/main/frontend/handler/file_based/events.cljs

+ 2 - 1
src/main/frontend/handler/file_based/events.cljs

@@ -203,7 +203,8 @@
    {:id :page-histories :label "modal-page-histories"}))
 
 (defmethod events/handle :file-sync/maybe-onboarding-show [[_ type]]
-  (file-sync/maybe-onboarding-show type))
+  (when-not util/web-platform?
+    (file-sync/maybe-onboarding-show type)))
 
 (defmethod events/handle :file-sync/storage-exceed-limit [[_]]
   (notification/show! "file sync storage exceed limit" :warning false)