Skip to content

Commit a61b17a

Browse files
committed
♻️ refactor with version
1 parent abc10c5 commit a61b17a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sourcelink.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sourcelink.js.LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
*
33
* Copyright (c) 2025 Praba Ponnambalam
4-
* Version: 1.4.2
4+
* Version: 1.4.5
55
* Released under the MIT License.
66
*
77
*/

sourcelinkdev.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var __webpack_exports__ = {};
55
console.info('SourceLink initialized...');
66

77
const cloudFunctionUrl = "https://us-west1-ms-source-tracking-tool-dev.cloudfunctions.net/sourceLinkWriteFirebase";
8+
const pixelVersion = "1.4.5";
89

910
(function () {
1011
// Action types matching backend
@@ -61,7 +62,8 @@ const cloudFunctionUrl = "https://us-west1-ms-source-tracking-tool-dev.cloudfunc
6162
}
6263

6364
const PIXEL_ID = pixelId.toUpperCase();
64-
const SESSION_KEY = `_source_link_${PIXEL_ID}`;
65+
const PIXEL_VERSION = pixelVersion;
66+
const SESSION_KEY = `_source_link_${PIXEL_ID}_PIXEL_VERSION_${PIXEL_VERSION}`;
6567

6668
// Utility Functions
6769
const getCookie = (name) => {

0 commit comments

Comments
 (0)