@superfeedback/widget 0.0.37 → 0.0.39

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.
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ var iifeLoader = async () => {
102
102
  #i = null;
103
103
  #a = !1;
104
104
  constructor(e) {
105
- if (this.#r = document.createElement("div"), this.#r.id = i.#t, this.#r.style.position = "fixed", this.#r.style.bottom = "20px", this.#r.style.right = "20px", this.#r.style.zIndex = "9999", document.body.appendChild(this.#r), e.appId && (this.#i = new SessionTracker(e.appId, "http://localhost:3000")), !e.appId && !e.projectId) {
105
+ if (this.#r = document.createElement("div"), this.#r.id = i.#t, this.#r.style.position = "fixed", this.#r.style.bottom = "20px", this.#r.style.right = "20px", this.#r.style.zIndex = "9999", document.body.appendChild(this.#r), e.appId && (this.#i = new SessionTracker(e.appId, "https://app.superfeedback.ai")), !e.appId && !e.projectId) {
106
106
  console.error("Superfeedback: appId or projectId is required");
107
107
  return;
108
108
  }
@@ -139,7 +139,7 @@ var iifeLoader = async () => {
139
139
  this.#n = u, u.mount(this.#r), this.#a = !1;
140
140
  }
141
141
  async #s(e) {
142
- let i = "http://localhost:3000";
142
+ let i = "https://app.superfeedback.ai";
143
143
  console.log("Superfeedback: resolve project_id with url:", i);
144
144
  let a = await fetch(`${i}/api/external/v1/apps/${e}/config`);
145
145
  if (!a.ok) throw Error(`Failed to resolve appId: ${a.statusText}`);