UNPKG

@tindtechnologies/universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

1 lines 911 B
"use strict";(self.webpackChunkUV=self.webpackChunkUV||[]).push([[6190],{6190:(n,e,o)=>{o.r(e),o.d(e,{ion_nav_pop:()=>i});var r=o(5873),t=o(6403),i=function(){function n(n){var e=this;(0,r.r)(this,n),this.pop=function(){return(0,t.n)(e.el,"back")}}return n.prototype.componentDidLoad=function(){console.warn('[DEPRECATED][ion-nav-pop] <ion-nav-pop> is deprecated. Use `<ion-nav-link routerDirection="back">` instead.')},n.prototype.render=function(){return(0,r.h)(r.H,{onClick:this.pop})},Object.defineProperty(n.prototype,"el",{get:function(){return(0,r.d)(this)},enumerable:!0,configurable:!0}),n}()},6403:(n,e,o)=>{o.d(e,{n:()=>r});var r=function(n,e,o,r){var t=n.closest("ion-nav");if(t)if("forward"===e){if(void 0!==o)return t.push(o,r,{skipIfBusy:!0})}else if("root"===e){if(void 0!==o)return t.setRoot(o,r,{skipIfBusy:!0})}else if("back"===e)return t.pop({skipIfBusy:!0});return Promise.resolve(!1)}}}]);