Skip to content

Commit

Permalink
Merge pull request #73 from harvard-canvas-branding/task/haydn9000/tl…
Browse files Browse the repository at this point in the history
…t-4647/dont-add-footer-links-to-OAuth-consent-screen

Add condition to skip adding footer content on OAuth2 login page
  • Loading branch information
haydn9000 authored Apr 19, 2024
2 parents 6671dc0 + ed90139 commit 7715119
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/footer_copyright.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ $(document).ready(function (e) {
* lines
*/
function addFooterContent() {
// Do not add footer content if the user is on the OAuth2 login page.
if (window.location.href.match(/.*\/login\/oauth2\//)) {
return;
}

const copyYear = new Date().getFullYear();

const harvardCopy =
Expand Down

0 comments on commit 7715119

Please sign in to comment.