import invoker,{PLATFORM_TYPE_ENUM}from"./invoker";invoker.registerAPI("h5PageBack",{mobile:function(e,n){var o=n.resolve,i=n.reject,a=n.context,r=n.containerType,c=n.platformType;if(r){c===PLATFORM_TYPE_ENUM.ANDROID?a&&a((function(e){invoker.handleBridgeResponse(e,o,i)}),(function(e){invoker.handleBridgeResponse(e,o,i)}),"biz.navigation","goBack",e):c===PLATFORM_TYPE_ENUM.IOS&&a.callHandler("biz.navigation.goBack",Object.assign({},e),(function(e){o(e)}))}else a&&a.call("h5PageBack",{_apiName:"goBack"},(function(){o()}))}}),goBack.version={android:"1.3.0",ios:"1.3.9"};export default function goBack(){return invoker.invoke("h5PageBack",{_apiName:"goBack"})}