Loading
Skip to content View Accessibility Statement
The travel industry took a devastating blow when the pandemic began, and people have (mistakenly)...
It is safe to say that there will not be hockey stick growth when it comes to...
Working remotely doesn’t mean you have to work from home from now on. These days,...
Imagine living in a world where you can be in Los Angeles, and arrive in...
var head = document.head;
var pdpButtonStylesheet = "https://cdn.shopify.com/extensions/0199379f-7215-7c31-a3e4-ff452964139e/wishlist-shopify-app-522/assets/addtowishlistbutton.css";
var pdpButtonStylesheetTag = document.createElement("link");
pdpButtonStylesheetTag.id = `swym-pdp-button-stylesheet`;
pdpButtonStylesheetTag.rel = "stylesheet";
pdpButtonStylesheetTag.href = pdpButtonStylesheet;
if (!document.getElementById("swym-pdp-button-stylesheet")) {
head.appendChild(pdpButtonStylesheetTag);
}
var x = document.getElementsByTagName("script")[0];
function createAndInsertScript(id, src, onLoadCallback) {
var scriptTag = document.createElement("script");
scriptTag.id = id;
scriptTag.type = "text/javascript";
scriptTag.src = src;
scriptTag.onload = onLoadCallback;
x.parentNode.insertBefore(scriptTag, x);
}
var pdpButtonScript = "https://cdn.shopify.com/extensions/0199379f-7215-7c31-a3e4-ff452964139e/wishlist-shopify-app-522/assets/addtowishlistbutton.js";
createAndInsertScript(
`swym-pdp-button-script`,
pdpButtonScript,
function () {
const pdpBtnApi = window.WishlistPlusPDPButtonAPI;
if (pdpBtnApi) {
pdpBtnApi.setDefaultCustomizationOptions(swat);
pdpBtnApi.initializePDPButton(swat, true);
}
}
);
break;
default:
return;
}
})
});
})(); // IIFE to prevent polluting global scope