Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c20c8b21
Commit
c20c8b21
authored
Oct 24, 2017
by
Matthew Piatetsky
Committed by
GitHub
Oct 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16313 from edx/LEARNER-2412
Do not set location cookie for USA and set cookie on top level domain
parents
5aa450ec
e0c73928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
openedx/features/course_experience/static/course_experience/js/currency.js
+4
-3
No files found.
openedx/features/course_experience/static/course_experience/js/currency.js
View file @
c20c8b21
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment