OnlineJS
OnlineJS copied to clipboard
better suggestion about
well, OnlineJS is a good method for listen networkstate. but I think this http://offlinejs.com/online.php is not a good suggestion.
we change this code like that
w.onlinejs._onLineURL = window.location.href.split(/[?#]+/)[0] || window.location.href;