wp-plugin-cloudflare-cache/assets/js/survey.js

12 lines
375 B
JavaScript
Raw Permalink Normal View History

2024-03-27 15:58:02 -04:00
/**
* Initialize the formbricks survey.
*
* @see https://github.com/formbricks/setup-examples/tree/main/html
*/
window.addEventListener('themeisle:survey:loaded', function () {
window?.tsdk_formbricks?.init?.({
environmentId: "clt8lntxw0zbu5zwkn3q2ybkq",
apiHost: "https://app.formbricks.com",
...(window?.swcfpcSurveyData ?? {}),
});
});