Skip to content

Commit e160afb

Browse files
committed
Fix some issues on the PR.
- Make the linter happy. - Let web pack handle the asset sources.
1 parent c634434 commit e160afb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/vector/mobile_guide/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
<div class="mx_HomePage_container">
1919
<div class="mx_HomePage_header">
2020
<div>
21-
<img src="mobile_guide/assets/element-logo.svg" alt="Element Logo" width="148px" height="32px" />
21+
<img
22+
src="<%= require('./assets/element-logo.svg').default %>"
23+
alt="Element Logo"
24+
width="148px"
25+
height="32px"
26+
/>
2227
</div>
2328
<div>
2429
<p id="header_title">Join Element.</p>
@@ -40,7 +45,7 @@ <h2 id="step1_heading">Download Element</h2>
4045
id="app_store_link"
4146
>
4247
<img
43-
src="mobile_guide/assets/app-store-badge.svg"
48+
src="<%= require('./assets/app-store-badge.svg').default %>"
4449
alt="Download on the App Store."
4550
width="120px"
4651
height="40px"
@@ -53,7 +58,7 @@ <h2 id="step1_heading">Download Element</h2>
5358
id="play_store_link"
5459
>
5560
<img
56-
src="mobile_guide/assets/google-play-badge.svg"
61+
src="<%= require('./assets/google-play-badge.svg').default %>"
5762
alt="Get it on Google Play."
5863
width="135px"
5964
height="40px"

src/vector/mobile_guide/mobile-apps.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,12 @@ export const mobileApps: Record<MobileAppVariant, MobileAppMetadata> = {
5454
},
5555
};
5656

57-
export function updateMobilePage(
58-
metadata: MobileAppMetadata,
59-
deepLinkUrl: string,
60-
server: string | undefined,
61-
): void {
57+
export function updateMobilePage(metadata: MobileAppMetadata, deepLinkUrl: string, server: string | undefined): void {
6258
const appleMeta = document.querySelector('meta[name="apple-itunes-app"]') as Element;
6359
appleMeta.setAttribute("content", `app-id=${metadata.appleAppId}`);
6460

6561
if (server) {
66-
(document.getElementById("header_title") as HTMLHeadingElement).innerText =
67-
`Join ${server} on Element`;
62+
(document.getElementById("header_title") as HTMLHeadingElement).innerText = `Join ${server} on Element`;
6863
}
6964
(document.getElementById("app_store_link") as HTMLAnchorElement).href = metadata.appStoreUrl;
7065
(document.getElementById("play_store_link") as HTMLAnchorElement).href = metadata.playStoreUrl;

0 commit comments

Comments
 (0)