0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Reload viewer and reset starting frame from workspace

This commit is contained in:
Andrés Moya 2022-01-21 13:18:28 +01:00 committed by Andrey Antukh
parent b4c23f3554
commit 5641132eb9
2 changed files with 5 additions and 2 deletions

View file

@ -242,7 +242,8 @@
(nil? frame)
[:section.empty-state
[:span (tr "viewer.frame-not-found")]]
(when (some? index)
[:span (tr "viewer.frame-not-found")])]
(some? frame)
(if (= :handoff section)

View file

@ -478,7 +478,9 @@
([uri name]
(open-new-window uri name "noopener,noreferrer"))
([uri name features]
(.open js/window (str uri) name features)))
(let [new-window (.open js/window (str uri) name features)]
(when (not= name "_blank")
(.reload (.-location new-window))))))
(defn browser-back
[]