mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1256936 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/test-bug-603750-websocket.js. r=linclark
This commit is contained in:
parent
e8c5fb94d7
commit
98d71fb40f
@ -3,14 +3,16 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
"use strict";
|
||||
|
||||
window.addEventListener("load", function () {
|
||||
var ws1 = new WebSocket("ws://0.0.0.0:81");
|
||||
let ws1 = new WebSocket("ws://0.0.0.0:81");
|
||||
ws1.onopen = function () {
|
||||
ws1.send("test 1");
|
||||
ws1.close();
|
||||
};
|
||||
|
||||
var ws2 = new window.frames[0].WebSocket("ws://0.0.0.0:82");
|
||||
let ws2 = new window.frames[0].WebSocket("ws://0.0.0.0:82");
|
||||
ws2.onopen = function () {
|
||||
ws2.send("test 2");
|
||||
ws2.close();
|
||||
|
Loading…
Reference in New Issue
Block a user