Compare commits
2 Commits
166f4ee7ce
...
fc5a0d209c
| Author | SHA1 | Date |
|---|---|---|
|
|
fc5a0d209c | |
|
|
63bee8f5e0 |
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "traxxx-web",
|
||||
"version": "0.42.13",
|
||||
"version": "0.42.14",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"version": "0.42.13",
|
||||
"version": "0.42.14",
|
||||
"dependencies": {
|
||||
"@brillout/json-serializer": "^0.5.8",
|
||||
"@dicebear/collection": "^7.0.5",
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
"overrides": {
|
||||
"vite": "$vite"
|
||||
},
|
||||
"version": "0.42.13",
|
||||
"version": "0.42.14",
|
||||
"imports": {
|
||||
"#/*": "./*.js"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,13 +46,13 @@ function getAffiliateUrl(scene) {
|
|||
return watchUrl;
|
||||
}
|
||||
|
||||
if (scene.affiliate.url?.includes('/track')) { // nats redirect
|
||||
if (scene.affiliate.url?.includes('/track')) { // standard NATS redirect
|
||||
const { pathname, search } = new URL(watchUrl);
|
||||
|
||||
return `${scene.affiliate.url}${pathname}${search}`;
|
||||
return `${scene.affiliate.url}${pathname.replace(/^\/trial/, '')}${search}`; // replace needed for Jules Jordan, verify behavior on other sites
|
||||
}
|
||||
|
||||
if (scene.affiliate.parameters) { // TODO: this is probably not getting tracked...
|
||||
if (scene.affiliate.parameters) { // used by e.g. Bang
|
||||
const newParams = new URLSearchParams({
|
||||
...Object.fromEntries(new URL(watchUrl).searchParams),
|
||||
...Object.fromEntries(new URLSearchParams(scene.affiliate.parameters)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue