Get connection status before downloading anything

Three years and three days ago I published a JavaScript snippet that allowed to check if you had internet connectivity. It didn’t cover every circumstance, but it allowed preventing most errors when trying to download while been offline.

Today I was told the shortcut/snippet doesn’t work in an Apple Watch. Luckily I was able to find an alternative way that also works there, so here it is, version 2.0 of Get Connection Status [JS1]

P.S. The “[JS1]” part is how I mark my collection of JavaScript snippets for Shortcuts. I have a couple dozen of them in RH.


I just had an idea to speed up a bit the detection for the “offline” case, so v2.1 is online now :slightly_smiling_face: