@birdie-so/snippet 1.1.1 → 1.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@birdie-so/snippet",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Helper for integrating the Birdie screen recording snippet into modern JavaScript apps. Requires a Birdie account.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -38,7 +38,8 @@ export function initBirdie({ clientId, metadata, onReady, singleHandlerPerEvent
38
38
  // Inject script if not already
39
39
  if (!document.getElementById('birdie-snippet')) {
40
40
  const script = document.createElement('script');
41
- script.src = `https://app.birdie.so/widget/embed/${clientId}`;
41
+ const embed_path = clientId == 'e4bf56a2' ? 'embed_birdie' : 'embed'
42
+ script.src = `https://app.birdie.so/widget/${embed_path}/${clientId}`;
42
43
  script.async = true;
43
44
  script.id = 'birdie-snippet';
44
45
  document.body.appendChild(script);