From d3606c07db7c6a1be78d6d908ba2a1b559c83f37 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 19 Jun 2025 22:59:20 +0900 Subject: [PATCH] Fix iframe closed too early in Safari #2571 --- common/tpl/popup_layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/tpl/popup_layout.html b/common/tpl/popup_layout.html index 556864c29..5252377f9 100644 --- a/common/tpl/popup_layout.html +++ b/common/tpl/popup_layout.html @@ -11,7 +11,9 @@ const iframe_sequence = '{{ $iframe_sequence }}'; window.opener = window.parent; window.close = function() { - parent.closeModal('_rx_iframe_' + iframe_sequence); + setTimeout(function() { + parent.closeModal('_rx_iframe_' + iframe_sequence); + }, 100); };