summaryrefslogtreecommitdiff
path: root/app/webutil.js
diff options
context:
space:
mode:
authorSolly Ross <sross@redhat.com>2017-02-03 23:17:44 -0500
committerSolly Ross <sross@redhat.com>2017-02-26 16:30:37 -0500
commit3ae0bb0968907dad1f730372f5309dc2cf0ea000 (patch)
tree3a8a966df5bc4969d5c558d982f3bb51c743321b /app/webutil.js
parentd55e4545829b1386750bdbf4184c91168f41e565 (diff)
downloadnovnc-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 'app/webutil.js')
-rw-r--r--app/webutil.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/webutil.js b/app/webutil.js
index e6e6afb..6afd015 100644
--- a/app/webutil.js
+++ b/app/webutil.js
@@ -10,9 +10,7 @@
/*jslint bitwise: false, white: false, browser: true, devel: true */
/*global Util, window, document */
-/* [module]
- * import Util from "../core/util";
- */
+import Util from "../core/util.js";
// Globals defined here
var WebUtil = {};
@@ -308,4 +306,4 @@ WebUtil.load_scripts = function (files_by_dir) {
}
};
-/* [module] export default WebUtil; */
+export default WebUtil;