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

Fix flags in dist builds #67

Merged
merged 1 commit into from
Sep 25, 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
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