mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
apply tsfmt
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
Offline.options = {
|
||||
checkOnLoad: false,
|
||||
interceptRequests: true,
|
||||
checks: {
|
||||
xhr: { url: '/connection-test' },
|
||||
image: { url: 'my-image.gif' },
|
||||
active: 'image'
|
||||
},
|
||||
checks: {
|
||||
xhr: { url: '/connection-test' },
|
||||
image: { url: 'my-image.gif' },
|
||||
active: 'image'
|
||||
},
|
||||
reconnect: {
|
||||
initialDelay: 3,
|
||||
delay: 60
|
||||
@@ -21,7 +21,7 @@ Offline.check();
|
||||
|
||||
Offline.state;
|
||||
|
||||
var handler = () => {},
|
||||
var handler = () => { },
|
||||
context = {};
|
||||
|
||||
Offline.on("up", handler, context);
|
||||
@@ -37,4 +37,4 @@ Offline.on("reconnect:failure", handler, context);
|
||||
Offline.on("requests:flush", handler, context);
|
||||
Offline.on("requests:hold", handler, context);
|
||||
|
||||
Offline.off("up", handler);
|
||||
Offline.off("up", handler);
|
||||
|
||||
Reference in New Issue
Block a user