mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
lint: Use window.
to avoid global declaration
This commit is contained in:
parent
19e9c2f114
commit
0f7c5a8782
1 changed files with 1 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* global socketio */
|
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
const socket = socketio.connect('..', '/settings');
|
const socket = window.socketio.connect('..', '/settings');
|
||||||
|
|
||||||
socket.on('connect', () => {
|
socket.on('connect', () => {
|
||||||
socket.emit('load');
|
socket.emit('load');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue