diff --git a/lib/browser-sync.js b/lib/browser-sync.js index 551523c61..941fcc248 100644 --- a/lib/browser-sync.js +++ b/lib/browser-sync.js @@ -582,15 +582,11 @@ BrowserSync.prototype.removeRewriteRule = function (id) { var bs = this; var mode = bs.options.get("mode"); - if (mode === "snippet") { - return; - } - if (mode === "server") { bs.snippetMw.opts.rules = bs.snippetMw.opts.rules.filter(fn); } - if (bs.options.get("mode") === "proxy") { + if (mode === "proxy") { bs.proxy.config.rules = bs.proxy.config.rules.filter(fn); }