From 207a0b839c8e253c035fd6b1131f80bb199f416b Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 10 Nov 2017 01:11:46 +0900 Subject: [PATCH] Use import --- src/web/app/common/scripts/stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/app/common/scripts/stream.js b/src/web/app/common/scripts/stream.js index 981118b5d..a03b7bf20 100644 --- a/src/web/app/common/scripts/stream.js +++ b/src/web/app/common/scripts/stream.js @@ -1,6 +1,6 @@ 'use strict'; -const ReconnectingWebSocket = require('reconnecting-websocket'); +import * as ReconnectingWebsocket from 'reconnecting-websocket'; import * as riot from 'riot'; import CONFIG from './config'; @@ -29,7 +29,7 @@ class Connection { .join('&') : null; - this.socket = new ReconnectingWebSocket(`${host}/${endpoint}${query ? '?' + query : ''}`); + this.socket = new ReconnectingWebsocket(`${host}/${endpoint}${query ? '?' + query : ''}`); this.socket.addEventListener('open', this.onOpen); this.socket.addEventListener('close', this.onClose); this.socket.addEventListener('message', this.onMessage);