2019-10-24 12:55:09 +09:00
|
|
|
interface CrispWindow extends Window {
|
2019-12-24 01:57:07 +09:00
|
|
|
$crisp: unknown[];
|
2019-10-24 12:55:09 +09:00
|
|
|
CRISP_WEBSITE_ID: string;
|
|
|
|
}
|
2019-12-24 01:57:07 +09:00
|
|
|
declare let window: CrispWindow;
|
2019-10-24 12:55:09 +09:00
|
|
|
|
2019-12-24 01:57:07 +09:00
|
|
|
export function initCrisp(): void {
|
2019-10-24 12:55:09 +09:00
|
|
|
window.$crisp = [];
|
|
|
|
window.CRISP_WEBSITE_ID = '92b2e096-6892-47dc-bf4a-057bad52d82e';
|
|
|
|
const s = document.createElement('script');
|
|
|
|
s.src = 'https://client.crisp.chat/l.js';
|
|
|
|
s.async = true;
|
|
|
|
document.getElementsByTagName('head')[0].appendChild(s);
|
|
|
|
}
|