mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-11 02:56:06 +00:00
10 lines
240 B
JavaScript
10 lines
240 B
JavaScript
onmessage = function() {
|
|
var wsCreated = true;
|
|
try {
|
|
new WebSocket("ws://mochi.test:8888/tests/dom/base/test/file_websocket_hello");
|
|
} catch(e) {
|
|
wsCreated = false;
|
|
}
|
|
postMessage(wsCreated ? "created" : "not created");
|
|
};
|