crisp-sdk-web
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -156,2 +156,3 @@ declare type FileMessage = { | ||
declare type Options = { | ||
clientUrl?: string; | ||
autoload?: boolean; | ||
@@ -193,2 +194,3 @@ tokenId?: string; | ||
declare class Crisp { | ||
private clientUrl; | ||
private websiteId; | ||
@@ -195,0 +197,0 @@ private autoload; |
@@ -337,2 +337,3 @@ var CrispMessage = /** @class */ (function () { | ||
// Options | ||
this.clientUrl = "https://client.crisp.chat/l.js"; | ||
this.websiteId = ""; | ||
@@ -358,2 +359,5 @@ this.autoload = true; | ||
this.safeMode = options.safeMode; | ||
if (options.clientUrl !== undefined) { | ||
this.clientUrl = options.clientUrl; | ||
} | ||
if (options.autoload !== undefined) { | ||
@@ -407,3 +411,3 @@ this.autoload = options.autoload; | ||
var _script = document.createElement("script"); | ||
_script.src = "https://client.crisp.chat/l.js"; | ||
_script.src = this.clientUrl; | ||
_script.async = true; | ||
@@ -410,0 +414,0 @@ _head[0].appendChild(_script); |
@@ -343,2 +343,3 @@ (function (global, factory) { | ||
// Options | ||
this.clientUrl = "https://client.crisp.chat/l.js"; | ||
this.websiteId = ""; | ||
@@ -364,2 +365,5 @@ this.autoload = true; | ||
this.safeMode = options.safeMode; | ||
if (options.clientUrl !== undefined) { | ||
this.clientUrl = options.clientUrl; | ||
} | ||
if (options.autoload !== undefined) { | ||
@@ -413,3 +417,3 @@ this.autoload = options.autoload; | ||
var _script = document.createElement("script"); | ||
_script.src = "https://client.crisp.chat/l.js"; | ||
_script.src = this.clientUrl; | ||
_script.async = true; | ||
@@ -416,0 +420,0 @@ _head[0].appendChild(_script); |
{ | ||
"name": "crisp-sdk-web", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Include Crisp chat widget inside web frameworks.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -43,2 +43,3 @@ import CrispMessage from "./message"; | ||
type Options = { | ||
clientUrl?: string | ||
autoload?: boolean, | ||
@@ -84,2 +85,3 @@ tokenId?: string | ||
// Options | ||
private clientUrl: string = "https://client.crisp.chat/l.js"; | ||
private websiteId: string = ""; | ||
@@ -124,2 +126,6 @@ private autoload: boolean = true; | ||
if (options.clientUrl !== undefined) { | ||
this.clientUrl = options.clientUrl; | ||
} | ||
if (options.autoload !== undefined) { | ||
@@ -190,3 +196,3 @@ this.autoload = options.autoload; | ||
_script.src="https://client.crisp.chat/l.js"; | ||
_script.src = this.clientUrl; | ||
_script.async = true; | ||
@@ -305,2 +311,2 @@ | ||
EventsColors | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141432
1806