 let sel = window.getSelection()
        sel.removeAllRanges()
        sel.addRange(range)
        document.execCommand("copy")
        let btnText = el.parentElement.querySelector('small')
        if (btnText) {
            btnText.innerHTML = 'copied!'
        }

        if (window.parent) {
            for (let i=0; i<AllowOrigins.length; i++) {
                try {
                    let origin = AllowOrigins[i]
                    let msg = { }
                    msg[provider] = sel.to