aumera-on-screen-widget 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/df-btn.js +6 -4
  2. package/package.json +1 -1
package/df-btn.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const wrapper = document.querySelector("#df-btn");
2
2
  const config = {
3
3
  src: wrapper.getAttribute("src"),
4
- project: wrapper.getAttribute("project"),
4
+ orgId: wrapper.getAttribute("orgId"),
5
5
  width: wrapper.getAttribute("width"),
6
6
  height: wrapper.getAttribute("height"),
7
7
  openText: wrapper.getAttribute("openText"),
@@ -21,8 +21,8 @@ const config = {
21
21
 
22
22
  const origin = config.src.substring(0, config.src.lastIndexOf("/"));
23
23
 
24
- if (!config.project) {
25
- console.warn("Please specify your project ID in attributes!");
24
+ if (!config.orgId) {
25
+ console.warn("Please specify your organization ID in attributes!");
26
26
  } else {
27
27
  const style = document.createElement("style");
28
28
  style.innerHTML = `
@@ -280,7 +280,9 @@ if (!config.project) {
280
280
  <div class="df-btn-header">
281
281
  <div class="df-btn-text">${config.openText || "Chat"}</div>
282
282
  </div>
283
- <iframe class="df-btn-content" src="https://chat.dev.aumera.ai/${detectedLang}/?orgId=1" allow="microphone *"></iframe>
283
+ <iframe class="df-btn-content" src="https://chat.dev.aumera.ai/${detectedLang}/?orgId=${
284
+ config.orgId
285
+ }" allow="microphone *"></iframe>
284
286
  </button>
285
287
  `);
286
288
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aumera-on-screen-widget",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "A lightweight, customizable chat widget for websites",
5
5
  "main": "df-btn.js",
6
6
  "scripts": {