UNPKG

@shopgate/pwa-common

Version:

Common library for the Shopgate Connect PWA.

6 lines 504 B
import cleanTab from'@shopgate/pwa-core/commands/cleanTab';/** * @param {boolean} isAndroid Tells if the function was called on an Android device. */var clearUpInAppBrowser=function clearUpInAppBrowser(isAndroid){/** * Remove leftover pages from the inAppBrowser on Android when the PWA view reappears. * Otherwise it the previous page would get visible again when the native back button is pressed. */if(isAndroid){cleanTab({targetTab:'in_app_browser'});}};export default clearUpInAppBrowser;