@superfeedback/widget 0.0.32 → 0.0.34

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
  }
@@ -138,7 +138,7 @@ var iifeLoader = async () => {
138
138
  this.#n = u, u.mount(this.#r), this.#a = !1;
139
139
  }
140
140
  async #s(e) {
141
- let i = "http://localhost:3000";
141
+ let i = "https://app.superfeedback.ai";
142
142
  console.log("Superfeedback: resolve project_id with url:", i);
143
143
  let a = await fetch(`${i}/api/external/v1/apps/${e}/config`);
144
144
  if (!a.ok) throw Error(`Failed to resolve appId: ${a.statusText}`);