UNPKG

@shopgate/pwa-common

Version:

Common library for the Shopgate Connect PWA.

7 lines 422 B
import{WINDOW_OPEN_OVERRIDE}from"../../constants/ActionTypes";/** * Indicates a call to window.open e.g. invoked by an external SDK. * * @param {Object} params Action params * @param {string} params.pathname The pathname window.open was called with * @returns {Object} */export var windowOpenOverride=function windowOpenOverride(_ref){var pathname=_ref.pathname;return{type:WINDOW_OPEN_OVERRIDE,pathname:pathname};};