mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fixed problems with preview
This commit is contained in:
parent
432a139f35
commit
f3477fefa5
3 changed files with 13 additions and 7 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue