Skip to content

Commit 29dfd0a

Browse files
committed
Don't fake snippet mode when fetching external socket connector if
running mode is proxy. re: #625
1 parent 40017b4 commit 29dfd0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/browser-sync.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,9 @@ BrowserSync.prototype.getExternalSocketConnector = function (opts) {
468468
return connectUtils.socketConnector(
469469
bs.options.withMutations(function (item) {
470470
item.set("socket", item.get("socket").merge(opts));
471-
item.set("mode", "snippet");
471+
if (bs.options.get("mode") !== "proxy") {
472+
item.set("mode", "snippet");
473+
}
472474
})
473475
);
474476
};

0 commit comments

Comments
 (0)