Openfin browser adapter
Openfin browser adapter is a set of mockup openfin apis in browser environment to assist openfin based app developing/testing.
- Written in typescript
- Support openfin js api v2 & v1
- Support openfin runtime up to v10.66.41.18
Installation
npm i openfin-browser-adapter or yarn add openfin-browser-adapter
Usage
// ************************************************************** // check whether fin handler is defined or not // if not it means we are at browser environment, // thus use browser-adapter instead to mockup openfin js apis if!windowfin windowfin = finUuid:processenvREACT_APP_FIN_UUID // fin app uuid injected via dotenv silentMode:false // log function calls to console or not ;
apis supported:
The author is lazy and he won't complete this section till next release