mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 23:19:28 +00:00
Merge pull request #8141 from penpot/niwinz-develop-bugfix-1
🐛 Prevent exception on open-new-window when no window is returned
This commit is contained in:
commit
927ac93fa7
@ -26,6 +26,7 @@
|
|||||||
- Fix incorrect default option on tokens import dialog [Github #8051](https://github.com/penpot/penpot/pull/8051)
|
- Fix incorrect default option on tokens import dialog [Github #8051](https://github.com/penpot/penpot/pull/8051)
|
||||||
- Fix unhandled exception tokens creation dialog [Github #8110](https://github.com/penpot/penpot/issues/8110)
|
- Fix unhandled exception tokens creation dialog [Github #8110](https://github.com/penpot/penpot/issues/8110)
|
||||||
- Fix displaying a hidden user avatar when there is only one more [Taiga #13058](https://tree.taiga.io/project/penpot/issue/13058)
|
- Fix displaying a hidden user avatar when there is only one more [Taiga #13058](https://tree.taiga.io/project/penpot/issue/13058)
|
||||||
|
- Fix unhandled exception on open-new-window helper [Github #7787](https://github.com/penpot/penpot/issues/7787)
|
||||||
|
|
||||||
## 2.13.0 (Unreleased)
|
## 2.13.0 (Unreleased)
|
||||||
|
|
||||||
|
|||||||
@ -802,9 +802,10 @@
|
|||||||
([uri name]
|
([uri name]
|
||||||
(open-new-window uri name "noopener,noreferrer"))
|
(open-new-window uri name "noopener,noreferrer"))
|
||||||
([uri name features]
|
([uri name features]
|
||||||
(let [new-window (.open js/window (str uri) name features)]
|
(when-let [new-window (.open js/window (str uri) name features)]
|
||||||
(when (not= name "_blank")
|
(when (not= name "_blank")
|
||||||
(.reload (.-location new-window))))))
|
(when-let [location (.-location new-window)]
|
||||||
|
(.reload location))))))
|
||||||
|
|
||||||
(defn browser-back
|
(defn browser-back
|
||||||
[]
|
[]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user