Browse Source

Fix Spector reload

sebavan 5 năm trước cách đây
mục cha
commit
74e1edfbea

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

@@ -38,7 +38,7 @@ gulp.task("webserver", function () {
                         });
                         });
                         return res.end();
                         return res.end();
                     }
                     }
-                    if (referer.indexOf('/localdev/') !== -1) {
+                    if (referer.indexOf('/localdev/') !== -1 && referer.indexOf(req.originalUrl) === -1) {
                         if (!fs.existsSync(rootRelativePath + req.originalUrl)) {
                         if (!fs.existsSync(rootRelativePath + req.originalUrl)) {
                             req.url = "/Playground/" + req.url.replace(/localDev/ig, "");
                             req.url = "/Playground/" + req.url.replace(/localDev/ig, "");
                         }
                         }