Skip to content

Commit

Permalink
Merge pull request #4763 from bdukes/cookie-consent-dnn-js
Browse files Browse the repository at this point in the history
Ensure dnn.js is requested for cookie consent
  • Loading branch information
valadas authored Jul 29, 2021
2 parents f740efc + db13e32 commit ecb356d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DNN Platform/Website/Default.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ private void InitializePage()
// Cookie Consent
if (this.PortalSettings.ShowCookieConsent)
{
JavaScript.RegisterClientReference(this, ClientAPI.ClientNamespaceReferences.dnn);
ClientAPI.RegisterClientVariable(this, "cc_morelink", this.PortalSettings.CookieMoreLink, true);
ClientAPI.RegisterClientVariable(this, "cc_message", Localization.GetString("cc_message", Localization.GlobalResourceFile), true);
ClientAPI.RegisterClientVariable(this, "cc_dismiss", Localization.GetString("cc_dismiss", Localization.GlobalResourceFile), true);
Expand Down

0 comments on commit ecb356d

Please # to comment.