@blotoutio/edgetag-sdk-browser 0.10.10 → 0.10.12

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/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -203,6 +203,9 @@
203
203
  };
204
204
  const getPageUrl = () => {
205
205
  try {
206
+ if (window.edgetagData && window.edgetagData['pageUrl']) {
207
+ return window.edgetagData['pageUrl'];
208
+ }
206
209
  return window.location.href;
207
210
  }
208
211
  catch (_a) {
@@ -515,7 +518,7 @@
515
518
  });
516
519
  });
517
520
  const getStandardPayload = (payload) => {
518
- const data = Object.assign({ pageUrl: getPageUrl(), pageTitle: getPageTitle(), userAgent: getUserAgent(), referrer: getReferrer(), search: getSearch(), sdkVersion: "0.10.10" }, (payload || {}));
521
+ const data = Object.assign({ pageUrl: getPageUrl(), pageTitle: getPageTitle(), userAgent: getUserAgent(), referrer: getReferrer(), search: getSearch(), sdkVersion: "0.10.12" }, (payload || {}));
519
522
  let storage = {};
520
523
  const session = getData$1('session');
521
524
  if (session) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-browser",
3
- "version": "0.10.10",
3
+ "version": "0.10.12",
4
4
  "description": "Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",