Skip to content

Commit

Permalink
add devui subdomain to canonical url list
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Feb 2, 2021
1 parent 9494970 commit a6bb21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
* Do that by checking for the presence of the canonical URL ([ui|dev|qa].adsabs.harvard.edu)
*/
(function checkIfProxied() {
const canonicalUrlPattern = /^(ui|qa|dev)\.adsabs\.harvard\.edu$/;
const canonicalUrlPattern = /^(ui|qa|dev|devui)\.adsabs\.harvard\.edu$/;

// if test fails, it is proxied url, set a class on body element
if (!canonicalUrlPattern.test(location.hostname)) {
if (!canonicalUrlPattern.test(window.location.hostname)) {
const [bodyEl] = document.getElementsByTagName('body');
bodyEl.classList.add('is-proxied');
}
Expand Down

0 comments on commit a6bb21d

Please sign in to comment.