Popup Swap

Embedding on Vue

If you need to include the HiSwap script in Vue, you can dynamically add it using the following mounted() function.

Make sure to create the HiSwap embed code first and copy the url. Replace {url} in the example with your custom URL.

export default {
  mounted() {
    const a = document.createElement('script');
    a.type = 'module';
    a.async = true;
    a.setAttribute('hiswap', true);
    a.src = '{url}';