Raanan Weber 5 lat temu
rodzic
commit
102f87a89c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Tools/Gulp/tasks/gulpTasks-localRun.js

+ 1 - 1
Tools/Gulp/tasks/gulpTasks-localRun.js

@@ -28,7 +28,7 @@ gulp.task("webserver", function () {
         middleware: function (connect, opt) {
             return [function (req, res, next) {
                 const baseUrl =  (req.url.indexOf('dist') !== -1 || req.url.indexOf('Tools') !== -1  || req.url.indexOf('temp/') !== -1);
-                if (!baseUrl && req.headers['referer'] && req.headers['referer'].indexOf('/Playground/') && req.url.indexOf('/Playground/') === -1) {
+                if (!baseUrl && req.headers['referer'] && req.headers['referer'].indexOf('/Playground/') !== -1 && req.url.indexOf('/Playground/') === -1) {
                     req.url = "/Playground/" + req.url;
                     res.writeHead(301, {
                         'Location': req.url