UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

1 lines 368 B
import{f as o,c as t}from"./p-3df3e749.js";import{c as s}from"./p-f4d641a6.js";const n=()=>{const n=window;n.addEventListener("statusTap",(()=>{o((()=>{const o=document.elementFromPoint(n.innerWidth/2,n.innerHeight/2);if(!o)return;const c=o.closest("ion-content");c&&new Promise((o=>s(c,o))).then((()=>{t((()=>c.scrollToTop(300)))}))}))}))};export{n as startStatusTap}