File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,21 @@ var connection = new sharedb.Connection(socket);
8
8
9
9
var element = document . querySelector ( 'textarea' ) ;
10
10
var statusSpan = document . getElementById ( 'status-span' ) ;
11
- status . innerHTML = "Not Connected"
11
+ statusSpan . innerHTML = "Not Connected"
12
12
13
13
element . style . backgroundColor = "gray" ;
14
14
socket . onopen = function ( ) {
15
- status . innerHTML = "Connected"
15
+ statusSpan . innerHTML = "Connected"
16
16
element . style . backgroundColor = "white" ;
17
17
} ;
18
18
19
19
socket . onclose = function ( ) {
20
- status . innerHTML = "Closed"
20
+ statusSpan . innerHTML = "Closed"
21
21
element . style . backgroundColor = "gray" ;
22
22
} ;
23
23
24
24
socket . onerror = function ( ) {
25
- status . innerHTML = "Error"
25
+ statusSpan . innerHTML = "Error"
26
26
element . style . backgroundColor = "red" ;
27
27
}
28
28
You can’t perform that action at this time.
0 commit comments