Commit e0c73928 by Matthew Piatetsky

Do not set location cookie for USA and set cookie on top level domain

parent 59490244
...@@ -17,6 +17,10 @@ export class Currency { // eslint-disable-line import/prefer-default-export ...@@ -17,6 +17,10 @@ export class Currency { // eslint-disable-line import/prefer-default-export
if (countryL10nData) { if (countryL10nData) {
countryL10nData.countryCode = countryCode; countryL10nData.countryCode = countryCode;
$.cookie('edx-price-l10n', JSON.stringify(countryL10nData), {
domain: 'edx.org',
expires: 1,
});
} else { } else {
countryL10nData = { countryL10nData = {
countryCode: 'USA', countryCode: 'USA',
...@@ -26,9 +30,6 @@ export class Currency { // eslint-disable-line import/prefer-default-export ...@@ -26,9 +30,6 @@ export class Currency { // eslint-disable-line import/prefer-default-export
}; };
} }
this.countryL10nData = countryL10nData; this.countryL10nData = countryL10nData;
$.cookie('edx-price-l10n', JSON.stringify(countryL10nData), {
expires: 1,
});
} }
setPrice() { setPrice() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment