]> git.proxmox.com Git - mirror_novnc.git/blobdiff - app/webutil.js
Use more subtle colors for warn and error in lite
[mirror_novnc.git] / app / webutil.js
index 7cee466c8c7a6570ef32a2e72c670f3160fbcf63..dabc97c748357f67482999e63238b86bf25df23f 100644 (file)
@@ -10,7 +10,7 @@
 /*jslint bitwise: false, white: false, browser: true, devel: true */
 /*global Util, window, document */
 
-import { init_logging as main_init_logging } from '../core/util/logging.js'; 
+import { init_logging as main_init_logging } from '../core/util/logging.js';
 
 // init log level reading the logging HTTP param
 export function init_logging (level) {
@@ -153,7 +153,7 @@ export function readSetting (name, defaultValue) {
     if (typeof value === "undefined") {
         value = null;
     }
-    if (value === null && typeof defaultValue !== undefined) {
+    if (value === null && typeof defaultValue !== "undefined") {
         return defaultValue;
     } else {
         return value;
@@ -206,7 +206,7 @@ export function injectParamIfMissing (path, param, value) {
 // will receive either an event or an error on failure.
 export function fetchJSON(path, resolve, reject) {
     // NB: IE11 doesn't support JSON as a responseType
-    const req = new XMLHttpRequest();
+    var req = new XMLHttpRequest();
     req.open('GET', path);
 
     req.onload = function () {