How to check internet online/offline in meteor client?

I would to check Internet Status (online/offline) in meteor client code.
I try to use npm is-reachable to check internet status on client code.
It work fine on localhost:3000 running, but get error when deployment (MUP).

Building App Bundle Locally
Errors prevented bundling:
While minifying app code:
eval at <anonymous>
(/Users/theara/.meteor/packages/standard-minifier-js/.1.2.1.1xl7woi++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:1:0),
<anonymous>:1545:18: SyntaxError: Unexpected token: name (options)
at new JS_Parse_Error (eval at <anonymous>
(/Users/theara/.meteor/packages/standard-minifier-js/.1.2.1.1xl7woi++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:1:0),
<anonymous>:1545:18)
at js_error (eval at <anonymous>
(/Users/theara/.meteor/packages/standard-minifier-js/.1.2.1.1xl7woi++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:1:0),
<anonymous>:1553:11)
at croak (eval at <anonymous>
(/Users/theara/.meteor/packages/standard-minifier-js/.1.2.1.1xl7woi++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:1:0),
<anonymous>:2089:9)

Pl help me!

1 Like

@janmp, thanks for your reply I will check soon.