Skip to content

Commit

Permalink
Fix flags in dist builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton committed Sep 24, 2024
1 parent c7ad565 commit 7843e15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/background/tabHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class TabHandler extends Component {

if (this.currentContext && this.currentContext.countryCode) {
browser.pageAction.setIcon({
path: `../assets/flags/${this.currentContext.countryCode}.png`,
path: `../assets/flags/${this.currentContext.countryCode.toUpperCase()}.png`,
tabId: currentTab.id,
});
return browser.pageAction.show(currentTab.id);
Expand Down
2 changes: 1 addition & 1 deletion src/components/vpncard.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class VPNCard extends LitElement {
return html`
<footer>
<img
src="../../assets/flags/${countryFlag}.png"
src="../../assets/flags/${countryFlag.toUpperCase()}.png"
width="24"
height="24"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/browserAction/popupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class BrowserActionPopup extends LitElement {
@click=${openServerList}
>
<img
src="../../assets//flags/${siteContext.countryCode}.png"
src="../../assets//flags/${siteContext.countryCode.toUpperCase()}.png"
height="24"
width="24"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pageAction/pageAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class PageActionPopup extends LitElement {
const getSrc = () => {
return excluded
? `./../../assets/logos/logo-${scheme}-excluded.svg`
: `./../../assets/flags/${this._siteContext?.countryCode}.png`;
: `./../../assets/flags/${this._siteContext?.countryCode.toUpperCase()}.png`;
};

const removeContext = () => {
Expand Down

0 comments on commit 7843e15

Please sign in to comment.