We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f681ba4 commit 4228ad0Copy full SHA for 4228ad0
lib/src/web/web_unity_widget_controller.dart
@@ -256,7 +256,8 @@ class WebUnityWidgetController extends UnityWidgetController {
256
.querySelector('flt-platform-view')
257
?.querySelector('iframe');
258
259
- if (frame != null && _isJsObjectOfType(frame, 'HTMLIFrameElement')) {
+ final JSAny? jsFrame = frame.jsify();
260
+ if (frame != null && _isJsObjectOfType(jsFrame, 'HTMLIFrameElement')) {
261
(frame as web.HTMLIFrameElement).focus();
262
}
263
0 commit comments