Skip to content

Commit

Permalink
fix: rewrite fat-arrow syntax
Browse files Browse the repository at this point in the history
- Closes #41
  • Loading branch information
lukeed committed Dec 10, 2018
1 parent 31de0ee commit 7ff9780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function (url, opts) {
};

$.reconnect = function (e) {
(num++ < max) ? setTimeout(_ => {
(num++ < max) ? setTimeout(function () {
(opts.onreconnect || noop)(e);
$.open();
}, opts.timeout || 1e3) : (opts.onmaximum || noop)(e);
Expand Down

0 comments on commit 7ff9780

Please sign in to comment.