Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the missing NOPP logo #293

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading