🐛 Fixed problems with preview

This commit is contained in:
alonso.torres 2020-09-17 14:00:41 +02:00 committed by Andrey Antukh
parent 432a139f35
commit f3477fefa5
3 changed files with 13 additions and 7 deletions

View file

@ -10,6 +10,7 @@
(ns app.main.ui.viewer.header
(:require
[rumext.alpha :as mf]
[cuerdas.core :as str]
[app.main.ui.icons :as i]
[app.main.data.messages :as dm]
[app.main.data.viewer :as dv]
@ -84,7 +85,8 @@
delete #(st/emit! dv/delete-share-link)
href (.-href js/location)
link (str href "&token=" token)
href (subs href 0 (str/index-of href "?"))
link (str href "?token=" token "&index=0")
copy-link
(fn [event]