Skip to content

Commit

Permalink
fix: get server url, appId from the application
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Oct 22, 2024
1 parent cb6d75e commit e1cad6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions public/scripts/freshchat-temp.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class FreshChat {
hostname = localStorage.getItem("config.server_url");
appId = localStorage.getItem("config.app_id");

constructor({ token = null, hideButton = false } = {}) {
constructor({ token = null, hideButton = false, serverUrl, appId } = {}) {
this.authToken = token;
this.hideButton = hideButton;
this.hostname = serverUrl;
this.appId = appId;
this.init();
}

Expand Down

0 comments on commit e1cad6e

Please sign in to comment.