diff options
author | Solly Ross <sross@redhat.com> | 2017-02-03 23:17:44 -0500 |
---|---|---|
committer | Solly Ross <sross@redhat.com> | 2017-02-26 16:30:37 -0500 |
commit | 3ae0bb0968907dad1f730372f5309dc2cf0ea000 (patch) | |
tree | 3a8a966df5bc4969d5c558d982f3bb51c743321b /core/websock.js | |
parent | d55e4545829b1386750bdbf4184c91168f41e565 (diff) | |
download | novnc-3ae0bb0968907dad1f730372f5309dc2cf0ea000.tar.gz |
Uncomment ES6 module syntax
This removes the special comment part of the ES6 module syntax,
opting to enable ES6 module syntax by default.
It also appends `.js` to all import paths to better support in-browser
loading.
Diffstat (limited to 'core/websock.js')
-rw-r--r-- | core/websock.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/websock.js b/core/websock.js index 51d9b62..7cb0466 100644 --- a/core/websock.js +++ b/core/websock.js @@ -12,14 +12,13 @@ * read binary data off of the receive queue. */ -/* [module] - * import Util from "./util"; - */ +import Util from "./util.js"; + /*jslint browser: true, bitwise: true */ /*global Util*/ -/* [module] export default */ function Websock() { +export default function Websock() { "use strict"; this._websocket = null; // WebSocket object |