@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/cjs/entry.js
CHANGED
|
@@ -4142,7 +4142,15 @@ async function parseUseEl(useElement, mode, domParser) {
|
|
|
4142
4142
|
let [url, symbolId] = href.split('#');
|
|
4143
4143
|
// happens if svg spritemap is local, fastest case for us
|
|
4144
4144
|
if (!url && symbolId) {
|
|
4145
|
-
const
|
|
4145
|
+
const hasHashtag = href.startsWith('#');
|
|
4146
|
+
let escapedURL;
|
|
4147
|
+
if (hasHashtag) {
|
|
4148
|
+
escapedURL = `#${CSS.escape(href.substring(1))}`;
|
|
4149
|
+
}
|
|
4150
|
+
else {
|
|
4151
|
+
escapedURL = CSS.escape(href);
|
|
4152
|
+
}
|
|
4153
|
+
const symbol = document.querySelector(escapedURL);
|
|
4146
4154
|
if (symbol) {
|
|
4147
4155
|
const inlineSvg = `
|
|
4148
4156
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="${symbol.getAttribute('viewBox') || '0 0 24 24'}">
|
|
@@ -5267,7 +5275,7 @@ class App {
|
|
|
5267
5275
|
this.stopCallbacks = [];
|
|
5268
5276
|
this.commitCallbacks = [];
|
|
5269
5277
|
this.activityState = ActivityState.NotActive;
|
|
5270
|
-
this.version = '16.4.2
|
|
5278
|
+
this.version = '16.4.2'; // TODO: version compatability check inside each plugin.
|
|
5271
5279
|
this.socketMode = false;
|
|
5272
5280
|
this.compressionThreshold = 24 * 1000;
|
|
5273
5281
|
this.bc = null;
|
|
@@ -9647,7 +9655,7 @@ class API {
|
|
|
9647
9655
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9648
9656
|
const doNotTrack = this.checkDoNotTrack();
|
|
9649
9657
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9650
|
-
trackerVersion: '16.4.2
|
|
9658
|
+
trackerVersion: '16.4.2',
|
|
9651
9659
|
projectKey: this.options.projectKey,
|
|
9652
9660
|
doNotTrack,
|
|
9653
9661
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|