Skip to content

Commit

Permalink
Actually fixing original bug in sidekick
Browse files Browse the repository at this point in the history
  • Loading branch information
sanrai committed Jun 3, 2024
1 parent be90c7d commit 9b612f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/send-to-caas/send-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ const getOrigin = (fgColor) => {
cc: 'hawks',
dc: 'doccloud',
};
const originLC = (mappings[origin] || origin).toLowerCase();
if (originLC) {
return originLC;
if (mappings[origin.toLowerCase()] || origin) {
return mappings[origin.toLowerCase()] || origin;

Check warning on line 197 in tools/send-to-caas/send-utils.js

View check run for this annotation

Codecov / codecov/patch

tools/send-to-caas/send-utils.js#L196-L197

Added lines #L196 - L197 were not covered by tests
}

if (window.location.hostname.endsWith('.hlx.page')) {
Expand Down

0 comments on commit 9b612f8

Please sign in to comment.