Skip to content

Commit

Permalink
Update embed.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
NDevTK authored Jun 11, 2024
1 parent f131f43 commit a1da878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/dartpad_ui/lib/embed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ void handleEmbedMessage(AppModel model) {
web.window.addEventListener(
'message',
(web.MessageEvent event) {
if (event.source !== web.window.parent) return;
if (event.data case _SourceCodeMessage(:final type?, :final sourceCode?)
when type == 'sourceCode') {
if (sourceCode.isNotEmpty) {
Expand Down

0 comments on commit a1da878

Please sign in to comment.