deprecated-browser-shim
deprecated-browser-shim description
Install
$ yarn add @shelf/deprecated-browser-shim
Usage
In node project:
import {isDeprecatedBrowser, renderSplashScreen} from '@shelf/deprecated-browser-shim';
if(isDeprecatedBrowser()){
const appName = 'App';
renderSplashScreen(appName);
}
in browser as UMD
<script src="/lib/index.js"></script>
<script>
if(DeprecatedBrowserShim.isDeprecatedBrowser()){
const appName = 'App';
DeprecatedBrowserShim.renderSplashScreen(appName);
}
</script>
Publish
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
License
MIT © Shelf