Skip to content

Instantly share code, notes, and snippets.

@yefim
Created October 3, 2019 16:31
Show Gist options
  • Save yefim/d76ca2a01c36afe7ac076a7a62a0b407 to your computer and use it in GitHub Desktop.
Save yefim/d76ca2a01c36afe7ac076a7a62a0b407 to your computer and use it in GitHub Desktop.
import 'dart:html';
void main() {
window.onMessage.listen((message) { print('1'); });
window.onMessage.listen((message) { print('2'); });
window.onMessage.listen((message) { print('3'); });
window.onMessage.listen((message) { print('4'); });
window.postMessage({'a': 'b'}, '*');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment