feat: share and support modals

This commit is contained in:
liyasthomas
2021-08-09 17:55:30 +05:30
parent cbf99d2daf
commit aa8b4231e2
27 changed files with 425 additions and 27 deletions

18
plugins/crisp.js Normal file
View File

@@ -0,0 +1,18 @@
export default () => {
window.$crisp = []
window.CRISP_WEBSITE_ID = "3ad30257-c192-4773-955d-fb05a4b41af3"
const d = document
const s = d.createElement("script")
s.src = "https://client.crisp.chat/l.js"
s.async = 1
d.getElementsByTagName("head")[0].appendChild(s)
$crisp.push(["do", "chat:hide"])
$crisp.push([
"on",
"chat:closed",
() => {
$crisp.push(["do", "chat:hide"])
},
])
}