mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01: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';
|
||||
|
||||
/* global socketio */
|
||||
|
||||
$(document).ready(() => {
|
||||
const socket = socketio.connect('..', '/settings');
|
||||
const socket = window.socketio.connect('..', '/settings');
|
||||
|
||||
socket.on('connect', () => {
|
||||
socket.emit('load');
|
||||
|
|
Loading…
Reference in a new issue