UNPKG

518 BJavaScriptView Raw
1import { AppManager, View } from '@mamba/pos/simulator/index.js';
2import icon from '__APP_ICON__'; // eslint-disable-line
3import RootComponent from './index.html';
4
5/** __APP_MANIFEST__ is replaced with the current app's manifest */
6const manifest = {
7 ...__APP_MANIFEST__,
8 icon,
9};
10
11/** Show the Virtual POS before installing and opening the app */
12View.show();
13
14/** Install the app on the mamba simulator */
15AppManager.installApp({ manifest, RootComponent });
16
17/** Open the app */
18AppManager.open(manifest.slug);