Skip to content

Commit

Permalink
Add EventSource polyfill for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
glenjamin committed Sep 12, 2015
1 parent a741c07 commit 94da926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function webpackHotMiddleware(compiler, opts) {
});
});
return function(req, res, next) {
if (req.url !== opts.path) return next();
if (req.path !== opts.path) return next();
eventStream.handler(req, res);
};
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"author": "Glen Mailer <[email protected]>",
"license": "MIT",
"dependencies": {
"eventsource-polyfill": "^0.9.6",
"strip-ansi": "^2.0.1"
}
}

1 comment on commit 94da926

@koistya
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

req.path is always undefined. Ref #16, #17

Please sign in to comment.