Skip to content

Commit

Permalink
Update frame.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
NDevTK authored Jun 11, 2024
1 parent e9aaa83 commit b1244a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/dartpad_ui/lib/execution/frame.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ require(["dartpad_main", "dart_sdk"], function(dartpad_main, dart_sdk) {
(web.Event event) {
if (event is web.MessageEvent) {
final data = event.data.dartify() as Map<Object?, Object?>;
if (data['sender'] != 'frame' || event.source.parent != web.window) {
if (data['sender'] != 'frame' || event.source?.parent? != web.window) {
return;
}
final type = data['type'] as String?;
Expand Down

0 comments on commit b1244a0

Please sign in to comment.