llcc 3 лет назад
Родитель
Сommit
3c3890f668
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      src/main/frontend/mobile/deeplink.cljs

+ 8 - 1
src/main/frontend/mobile/deeplink.cljs

@@ -7,6 +7,7 @@
    [frontend.handler.notification :as notification]
    [frontend.handler.route :as route-handler]
    [frontend.handler.user :as user-handler]
+   [frontend.mobile.intent :as intent]
    [frontend.state :as state]
    [frontend.text :as text]))
 
@@ -67,5 +68,11 @@
              1000
              0))))
 
+      (= hostname "shared")
+      (let [result (into {} (map (fn [key]
+                                   [(keyword key) (.get search-params key)])
+                                 ["title" "url" "type"]))]
+        (intent/handle-result result))
+
       :else
-      (notification/show! (str "The url has not been supported yet.") :error false))))
+      nil)))