1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-21 17:37:01 +01:00

[MMI] Conditional change title in home if buildType is MMI (#17898)

Co-authored-by: António Regadas <apregadas@gmail.com>
This commit is contained in:
Albert Olivé 2023-03-02 17:18:46 +01:00 committed by GitHub
parent 9ba0b50b9a
commit cd26ad001a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -4,6 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=no">
<title>MetaMask</title>
{{@if(it.isMMI)}}
<title>MetaMask Institutional</title>
{{/if}}
<link rel="stylesheet" type="text/css" href="./index.css" title="ltr">
<link rel="stylesheet" type="text/css" href="./index-rtl.css" title="rtl" disabled>
</head>

View File

@ -689,6 +689,7 @@ function createFactoredBuild({
commonSet,
browserPlatforms,
applyLavaMoat,
isMMI: buildType === 'mmi',
});
break;
}
@ -1143,6 +1144,7 @@ function renderHtmlFile({
commonSet,
browserPlatforms,
applyLavaMoat,
isMMI,
}) {
if (applyLavaMoat === undefined) {
throw new Error(
@ -1154,7 +1156,11 @@ function renderHtmlFile({
const jsBundles = [...commonSet.values(), ...groupSet.values()].map(
(label) => `./${label}.js`,
);
const htmlOutput = Sqrl.render(htmlTemplate, { jsBundles, applyLavaMoat });
const htmlOutput = Sqrl.render(htmlTemplate, {
jsBundles,
applyLavaMoat,
isMMI,
});
browserPlatforms.forEach((platform) => {
const dest = `./dist/${platform}/${htmlName}.html`;
// we dont have a way of creating async events atm