OLD | NEW |
---|---|
(Empty) | |
1 import 'dart:html'; | |
vsm
2013/04/01 14:07:18
Standard copyright message?
Anton Muhin
2013/04/01 14:18:17
Done.
| |
2 import 'dart:isolate'; | |
3 | |
4 main() { | |
5 port.receive((msg, replyTo) { | |
6 if (msg != 'check') { | |
7 replyTo.send('wrong msg: $msg'); | |
8 } | |
9 replyTo.send('${window.location}'); | |
10 port.close(); | |
11 }); | |
12 } | |
OLD | NEW |