Skip to content

Commit 1046b46

Browse files
committed
Merge branch 'master' into flutter_unity_widget_2
2 parents b6b22c5 + 4228ad0 commit 1046b46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/web/web_unity_widget_controller.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ class WebUnityWidgetController extends UnityWidgetController {
256256
.querySelector('flt-platform-view')
257257
?.querySelector('iframe');
258258

259-
if (frame != null && _isJsObjectOfType(frame, 'HTMLIFrameElement')) {
259+
final JSAny? jsFrame = frame.jsify();
260+
if (frame != null && _isJsObjectOfType(jsFrame, 'HTMLIFrameElement')) {
260261
(frame as web.HTMLIFrameElement).focus();
261262
}
262263
}

0 commit comments

Comments
 (0)