lint: Use `window.` to avoid global declaration
This commit is contained in:
parent
19e9c2f114
commit
0f7c5a8782
|
@ -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 New Issue