Detecting NearFi wallet provider ready
NearFi Dapp browser injected a global object called
nearFiWallet
for applications to interact with the user wallet and the NEAR blockchain
This code segment checks whether NearFi wallet available for use in the browserif (typeof window.nearFiWallet !== 'undefined' && window.nearFiWallet.isNearFi) {
console.log('NearFi is installed and ready for connection!');
}