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:
parent
b4c23f3554
commit
5641132eb9
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
[]
|
||||
|
|
Loading…
Add table
Reference in a new issue