opnform/client/plugins/crisp.client.js

11 lines
281 B
JavaScript
Raw Normal View History

import {Crisp} from "crisp-sdk-web"
import config from "~/opnform.config.js";
export default defineNuxtPlugin(nuxtApp => {
const isIframe = useIsIframe()
if (config.crisp_website_id && !isIframe) {
Crisp.configure(config.crisp_website_id)
window.Crisp = Crisp
}
});