Skip to content

Commit 889eb37

Browse files
Update README.md
1 parent 95714b8 commit 889eb37

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ Assign <code>window.onLineHandler</code> or <code>window.offLineHandler</code> f
1515

1616
Just look at <a href="http://pixelscommander.com/polygon/onlinejs/">example</a> (index.html in the repo)!
1717

18-
You can change <code>window.onLineURL</code> to point OnlineJS to your own server.
19-
2018
More info in this <a href="http://pixelscommander.com/en/javascript/onlinejs-javascript-internet-connection/">blog post</a>.
2119

20+
Safety and guarantees
21+
---------------------
22+
Library requests headers from public URL to check if internet is available. URL set by default is maintained by me and there is no guarantee I am going to run it forever. In order to make it safe for your application it is recommended to run your own URL responding with header <code>Access-Control-Allow-Origin: *</code> and then switch Online.JS to it by setting <code>window.onLineURL</code>.
23+
2224

2325
navigator.onLine
2426
----------------

0 commit comments

Comments
 (0)