Skip to content

Commit

Permalink
missed reconnect.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
symunona committed Mar 14, 2023
1 parent e6649e9 commit e8076bc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/reconnect.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
(function() {
var down, next, nope, rc, reset, retryIntv, tick, tryNow, up;
var Offline, down, next, nope, rc, reset, retryIntv, tick, tryNow, up;

if (!window.Offline) {
throw new Error("Offline Reconnect brought in without offline.js");
}
Offline = require('offline');

rc = Offline.reconnect = {};

Expand Down Expand Up @@ -74,7 +72,7 @@

rc.tryNow = tryNow;

reset();
Offline.reconnect.reset = reset;

Offline.on('down', down);

Expand Down

0 comments on commit e8076bc

Please sign in to comment.