Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
9 lines
227 B
Plaintext
9 lines
227 B
Plaintext
import isBrowser from '../../../utils/isBrowser';
|
|
var isOnline = function () {
|
|
if (isBrowser && typeof navigator.onLine !== 'undefined') {
|
|
return navigator.onLine;
|
|
}
|
|
return true;
|
|
};
|
|
export default isOnline;
|