mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
parent
3d8b371710
commit
c02fe456a0
@ -58,7 +58,12 @@ function getBrowserVersionMap(platforms, version) {
|
|||||||
if (!String(buildVersion).match(/^\d+$/u)) {
|
if (!String(buildVersion).match(/^\d+$/u)) {
|
||||||
throw new Error(`Invalid prerelease build version: '${buildVersion}'`);
|
throw new Error(`Invalid prerelease build version: '${buildVersion}'`);
|
||||||
} else if (
|
} else if (
|
||||||
![BuildType.beta, BuildType.flask, BuildType.desktop].includes(buildType)
|
![
|
||||||
|
BuildType.beta,
|
||||||
|
BuildType.flask,
|
||||||
|
BuildType.desktop,
|
||||||
|
BuildType.mmi,
|
||||||
|
].includes(buildType)
|
||||||
) {
|
) {
|
||||||
throw new Error(`Invalid prerelease build type: ${buildType}`);
|
throw new Error(`Invalid prerelease build type: ${buildType}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user