mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix crash when websocket.js is used from a worker
This commit is contained in:
parent
ccbd38e2c7
commit
4f878b2244
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ var closeCode;
|
|||
var urlToOpen;
|
||||
|
||||
function IsWebSocket() {
|
||||
if (!window.WebSocket) {
|
||||
if (!self.WebSocket) {
|
||||
assert_true(false, "Browser does not support WebSocket");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue