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:
parent
9ba0b50b9a
commit
cd26ad001a
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user