@geophrase/core 1.3.5 → 1.3.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.
- package/package.json +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -43,7 +43,7 @@ class Geophrase {
|
|
|
43
43
|
this.overlayId = `geophrase-overlay-${instanceId}`;
|
|
44
44
|
this.styleId = `geophrase-styles-${instanceId}`;
|
|
45
45
|
|
|
46
|
-
// 5. Endpoints (undocumented override for staging
|
|
46
|
+
// 5. Endpoints (undocumented override for staging)
|
|
47
47
|
const endpoints = options._endpoints || {};
|
|
48
48
|
this.widgetOrigin = endpoints.widgetOrigin || 'https://connect.geophrase.com';
|
|
49
49
|
this.apiBase = endpoints.apiBase || 'https://api.geophrase.com';
|
|
@@ -51,7 +51,7 @@ class Geophrase {
|
|
|
51
51
|
this._boundHandleMessage = this._handleMessage.bind(this);
|
|
52
52
|
this._prevBodyOverflow = null;
|
|
53
53
|
|
|
54
|
-
// 6. Pre-compute the secure widget URL
|
|
54
|
+
// 6. Pre-compute the secure widget URL
|
|
55
55
|
const url = new URL(this.widgetOrigin);
|
|
56
56
|
if (this.orderId) url.searchParams.append('order-id', this.orderId);
|
|
57
57
|
if (this.phone) url.searchParams.append('phone', this.phone);
|