openfin-browser-adapter
v1.0.0
Published
browser mockup adapter for openfin js api
Downloads
67
Maintainers
Readme
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
import { BrowserAdapter } from 'openfin-browser-adapter'
// **************************************************************
// 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(!window.fin){
window.fin = new BrowserAdapter({
finUuid:process.env.REACT_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