Hey guys!
I have a question - I added a code to my client’s website (Classic Editor) copyToClipboard()
On desktop and Android it works fine, but on iOS the window in the attached image appears.
How can I make sure it doesn’t pop up?
- You need to click on the black button and then on OFIR15 in the lightbox-
https://www.ofirassulin.design/ponponi
The is the code:
import wixWindow from 'wix-window';
let copyToClipboard;
$w.onReady(function () {
$w("#text52").onClick((event) => {
let text = $w('#text52').text;
wixWindow.copyToClipboard(text)
.then(() => {
$w('#vectorImage2').show();
})
.catch((err) => {
console.log(err)
});
})});