@openreplay/tracker 16.4.2-beta.4 → 16.4.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/dist/cjs/entry.js +11 -3
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +11 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/entry.js +11 -3
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +11 -3
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -4138,7 +4138,15 @@ async function parseUseEl(useElement, mode, domParser) {
|
|
|
4138
4138
|
let [url, symbolId] = href.split('#');
|
|
4139
4139
|
// happens if svg spritemap is local, fastest case for us
|
|
4140
4140
|
if (!url && symbolId) {
|
|
4141
|
-
const
|
|
4141
|
+
const hasHashtag = href.startsWith('#');
|
|
4142
|
+
let escapedURL;
|
|
4143
|
+
if (hasHashtag) {
|
|
4144
|
+
escapedURL = `#${CSS.escape(href.substring(1))}`;
|
|
4145
|
+
}
|
|
4146
|
+
else {
|
|
4147
|
+
escapedURL = CSS.escape(href);
|
|
4148
|
+
}
|
|
4149
|
+
const symbol = document.querySelector(escapedURL);
|
|
4142
4150
|
if (symbol) {
|
|
4143
4151
|
const inlineSvg = `
|
|
4144
4152
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="${symbol.getAttribute('viewBox') || '0 0 24 24'}">
|
|
@@ -5263,7 +5271,7 @@ class App {
|
|
|
5263
5271
|
this.stopCallbacks = [];
|
|
5264
5272
|
this.commitCallbacks = [];
|
|
5265
5273
|
this.activityState = ActivityState.NotActive;
|
|
5266
|
-
this.version = '16.4.2
|
|
5274
|
+
this.version = '16.4.2'; // TODO: version compatability check inside each plugin.
|
|
5267
5275
|
this.socketMode = false;
|
|
5268
5276
|
this.compressionThreshold = 24 * 1000;
|
|
5269
5277
|
this.bc = null;
|
|
@@ -9643,7 +9651,7 @@ class API {
|
|
|
9643
9651
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9644
9652
|
const doNotTrack = this.checkDoNotTrack();
|
|
9645
9653
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9646
|
-
trackerVersion: '16.4.2
|
|
9654
|
+
trackerVersion: '16.4.2',
|
|
9647
9655
|
projectKey: this.options.projectKey,
|
|
9648
9656
|
doNotTrack,
|
|
9649
9657
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|