Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const options = {
hideHeaders,
hideFooter,
opacity,
buttonText,
mode,
autoOpen,
autoClose,
onSubmit
};
// Popup Mode
if (popup) {
// Load Typeform embed popup
this.typeform = typeformEmbed.makePopup(url, options);
// Widget Mode (default)
} else {
const elm = this.typeformElm;
// Load Typeform embed widget
typeformEmbed.makeWidget(elm, url, options);
}
}