Skip to content

Commit

Permalink
LPD-37119 Fix themeDisplay is null when using 3rd party website
Browse files Browse the repository at this point in the history
  • Loading branch information
interaminense authored and brianchandotcom committed Sep 28, 2024
1 parent 3b76f68 commit bebb849
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ class Analytics {
);
}
else {
const path = themeDisplay.getPathContext() || '/';
const path = Liferay?.themeDisplay?.getPathContext() || '/';

document.cookie = `${key}=${data}; expires=${expires.toUTCString()}; path=${path}; Secure`;
}
Expand Down

0 comments on commit bebb849

Please sign in to comment.