javascript - Offline.js Cross-domain Image gives undefined -


i want web app know if it's online (to avoid google maps functions), use offline.js. i'm trying access image our website, web app not hosted online (it's run locally), access cross-domain. here code in $(document).one('ready',:

offline.options = {     checks: {         image: {             url: 'http://www.portalogic.info/images/portalogic.gif'         },         active: 'image'     } };  var on_line = offline.check(); console.log(on_line); 

but on_line = undefined. why this? there different way this?


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo