Skip to content

Commit

Permalink
Use location.hostname for the platform's cookies so it is automatical…
Browse files Browse the repository at this point in the history
…ly set and renamed acceptNecessaryBtn's text.
  • Loading branch information
barnettwilliam committed Jan 26, 2024
1 parent 1a4f6d3 commit 316009c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/public/js/cookieconsent-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CookieConsent.run({
},
preferencesModal: {
title: 'Manage cookie preferences',
acceptNecessaryBtn: 'Reject all',
acceptNecessaryBtn: 'Accept necessary cookies',
savePreferencesBtn: 'Accept current selection',
closeIconLabel: 'Close modal',
sections: [
Expand All @@ -42,13 +42,13 @@ CookieConsent.run({
{
name: 'mdenetep-auth',
description: 'Used for user authentication purposes and enables the platform to save user progress to and read from private GitHub repositories that they choose.',
host: 'PLATFORM_DEPLOY_DOMAIN',
host: window.location.hostname,
duration: 'session'
},
{
name: 'JSESSIONID',
description: 'Random session ID used to access each generated Xtext editor.',
host: 'PLATFORM_DEPLOY_DOMAIN',
host: window.location.hostname,
duration: 'session'
}
]
Expand Down

0 comments on commit 316009c

Please sign in to comment.