Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bgdeutsch committed Jun 30, 2022
1 parent 87da279 commit 9ea3938
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/scripts/region-redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import config from './regions.config';

// need to wait for DOM since this script is loaded in the <head>
document.addEventListener('DOMContentLoaded', () => {
// Object.defineProperty(document, "referrer", {configurable: true, get : function(){ return 'app.datadoghq.eu'; }})
console.log(`Checking referrer on page load: ${document.referrer}`)
const regionSelector = document.querySelector('.js-region-select')
const currentUserSavedRegion = Cookies.get('site')
const currentReferrerAppRegion = getDDSiteFromReferrer()
Expand Down

0 comments on commit 9ea3938

Please sign in to comment.