1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

fix: download link

This commit is contained in:
Goktug Poyraz 2023-03-20 14:17:40 +01:00
parent d2098e26ac
commit d2b44a338d

View File

@ -121,13 +121,16 @@ export async function getErrorHtml(
} }
///: BEGIN:ONLY_INCLUDE_IN(flask) ///: BEGIN:ONLY_INCLUDE_IN(flask)
const MMD_DOWNLOAD_LINK =
'https://github.com/MetaMask/metamask-desktop/releases';
function disableDesktop(backgroundConnection) { function disableDesktop(backgroundConnection) {
backgroundConnection.disableDesktopError(); backgroundConnection.disableDesktopError();
} }
export function downloadDesktopApp() { export function downloadDesktopApp() {
global.platform.openTab({ global.platform.openTab({
url: 'https://github.com/MetaMask/metamask-desktop/releases', url: MMD_DOWNLOAD_LINK,
}); });
} }
@ -141,7 +144,7 @@ export function restartExtension() {
export function openOrDownloadMMD() { export function openOrDownloadMMD() {
openCustomProtocol('metamask-desktop://pair').catch(() => { openCustomProtocol('metamask-desktop://pair').catch(() => {
window.open('https://metamask.io/download.html', '_blank').focus(); window.open(MMD_DOWNLOAD_LINK, '_blank').focus();
}); });
} }