@@ -0,0 +1,9 @@
+import errorCodes from './errorCodes';
+
+export function checkConnectivity() {
+ if (navigator.onLine) {
+ return true;
+ } else {
+ throw new Error(errorCodes.ERR_NO_INTERNET_CONNECTION);
+ }
+}