[CORD-1549] Updating GUI extension
Change-Id: Ic4377ddcb37ff9f86b01e246b89db2945b863796
diff --git a/xos/gui/conf/browsersync.conf.js b/xos/gui/conf/browsersync.conf.js
index 430c94f..06cb51a 100755
--- a/xos/gui/conf/browsersync.conf.js
+++ b/xos/gui/conf/browsersync.conf.js
@@ -9,12 +9,9 @@
conf.paths.src
],
middleware: function (req, res, next) {
- if (req.url.indexOf('xosapi') !== -1) {
+ if (req.url.indexOf('xosapi') !== -1 || req.url.indexOf('xos') !== -1 || req.url.indexOf('socket') !== -1) {
proxy.api.web(req, res);
}
- else if (req.url.indexOf('spa') !== -1 || req.url.indexOf('socket') !== -1) {
- proxy.static.web(req, res);
- }
else {
next();
}