CSR-747 Change referrer for local
This commit is contained in:
parent
a9c24359c2
commit
142b7b2a07
1 changed files with 4 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ import { cookieNames } from "@/constants/cookie-names";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
|
|
||||||
import baseMixin from "@/mixins/base-mixin";
|
import baseMixin from "@/mixins/base-mixin";
|
||||||
|
import { applicationConfig } from "../constants/application-config";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -129,11 +130,13 @@ export default {
|
||||||
async initSession() {
|
async initSession() {
|
||||||
const sid = getSessionIdValue();
|
const sid = getSessionIdValue();
|
||||||
const skey = getSessionKeyValue();
|
const skey = getSessionKeyValue();
|
||||||
|
const referrer = applicationConfig.CURRENT_ENVIRONMENT != "Localhost" ? document.referrer : null;
|
||||||
|
|
||||||
var payload = {
|
var payload = {
|
||||||
userId: getDeviceIdValue(),
|
userId: getDeviceIdValue(),
|
||||||
sessionId: sid,
|
sessionId: sid,
|
||||||
userAgent: navigator.userAgent,
|
userAgent: navigator.userAgent,
|
||||||
referrer: document.referrer,
|
referrer: referrer,
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await baseMixin.methods.dispatchStoreAction(
|
const response = await baseMixin.methods.dispatchStoreAction(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue