[go: nahoru, domu]

Skip to content

Commit

Permalink
Update frame.js (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
NDevTK committed Jun 11, 2024
1 parent 520e136 commit 0714ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/dartpad_ui/web/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function replaceJavaScript(value) {
// Handles incoming messages.
function messageHandler(e) {
var obj = e.data;

if (window.origin !== 'null' || e.source !== window.parent) return;
if (obj.command === 'execute') {
runFlutterApp(obj.js, obj.canvasKitBaseUrl);
}
Expand Down

0 comments on commit 0714ecb

Please sign in to comment.