Skip to content

Commit

Permalink
Merge pull request #45 from rtCamp/fix/personalization-demo
Browse files Browse the repository at this point in the history
Fix for personalization demo
  • Loading branch information
fellyph authored Feb 12, 2024
2 parents a67b812 + d556167 commit 728bf94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scenarios/personalization/personalization.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ document.addEventListener('DOMContentLoaded', () => {
const themeSwitcher = document.getElementById('dark-mode-switch');

function updateUserPreference() {
fetch(`${baseURL}/get-personalization`)
fetch(`${baseURL}/get-personalization`, {
method: 'GET',
credentials: 'include'
})
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
Expand Down

0 comments on commit 728bf94

Please sign in to comment.