0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

Refresh the view app page each time user clicks on preview button.

This commit is contained in:
Andrey Antukh 2017-02-22 21:05:53 +01:00
parent 3940995e21
commit fe61765435
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -43,7 +43,8 @@
[event project page] [event project page]
(let [token (:share-token project) (let [token (:share-token project)
index (:index page) index (:index page)
url (str cfg/viewurl "#/" token "/" index)] rval (rand-int 1000000)
url (str cfg/viewurl "?v=" rval "#/" token "/" index)]
(js/open url "new tab" ""))) (js/open url "new tab" "")))
(mx/defc header (mx/defc header