mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-11 06:11:56 +00:00
fix: harden card verification (#4126)
This commit is contained in:
1 parent
3d7deaa403
commit
b6dfc6f903
1 file changed
+5
-2
@@ -1322,8 +1322,11 @@ async function UIWindow (options) {
|
||||
// set iframe url
|
||||
if ( options.iframe_url ) {
|
||||
$(el_window_app_iframe).attr('src', options.iframe_url);
|
||||
//bring focus to iframe
|
||||
el_window_app_iframe.contentWindow.focus();
|
||||
// Not for a hidden window: focusing a display:none iframe still takes
|
||||
// the keyboard from whatever had it. Showing it later focuses it.
|
||||
if ( options.is_visible ) {
|
||||
el_window_app_iframe.contentWindow.focus();
|
||||
}
|
||||
}
|
||||
// set the position of window
|
||||
if ( ! options.is_maximized ) {
|
||||
|
||||
Reference in new issue
Block a user