Skip to content

Commit

Permalink
Merge pull request #293 from RENCI/issue-292-missing-nopp-logo
Browse files Browse the repository at this point in the history
Fixing the missing NOPP logo
  • Loading branch information
lstillwe authored Oct 10, 2024
2 parents 1080f32 + d61c856 commit 9369486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/control-panel/branding.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export const Branding = () => {

// get the branded website if any
let product_code = getBrandingHandler();
// for testing: let product_code = '&project_code=nopp';
// for testing: let product_code = '&ensemble_name=coampsforecast&project_code=nopp';
if (product_code) {
product_code = product_code.split('=')[1];
// get the pieces of the query string
product_code = product_code.split('&project_code=')[1];
}

return (
Expand Down
2 changes: 1 addition & 1 deletion src/utils/map-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const getBrandingHandler = () => {
// if this is a nopp branding
if(window.location.href.includes('nopp')) {
// use local host values
ret_val = '&project_code=nopp&ensemble_name=coampsforecast';
ret_val = '&ensemble_name=coampsforecast&project_code=nopp';
}

// return the query string
Expand Down

0 comments on commit 9369486

Please sign in to comment.