zh-web-sdk 2.3.0 → 2.3.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zh-web-sdk",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "private": false,
5
5
  "description": "ZeroHash Web SDK",
6
6
  "homepage": "https://github.com/seedcx/zh-web-sdk",
package/src/index.tsx CHANGED
@@ -280,11 +280,12 @@ export class ZeroHashSDK implements IZeroHashSDK {
280
280
  const shadowRoot = root.attachShadow({ mode: "closed" });
281
281
 
282
282
  // Render the React modal
283
+ const urlWithIdentifier = new URL(appIdentifier, _zeroHashAppsURL).href
283
284
  ReactDOM.createRoot(shadowRoot).render(
284
285
  <Provider store={store}>
285
286
  <AppContainer
286
287
  appIdentifier={appIdentifier}
287
- zeroHashAppURL={`${_zeroHashAppsURL}/${appIdentifier}`}
288
+ zeroHashAppURL={urlWithIdentifier}
288
289
  />
289
290
  </Provider>
290
291
  );