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

Minor code cleanup of _viewOnEtherscan (#12609)

This commit is contained in:
David Walsh 2021-11-05 16:18:07 -05:00 committed by GitHub
parent a6d0f379ad
commit 042bd84c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,9 +262,9 @@ export default class ExtensionPlatform {
}
}
_viewOnEtherscan(txId) {
if (txId.startsWith('https://')) {
extension.tabs.create({ url: txId });
_viewOnEtherscan(url) {
if (url.startsWith('https://')) {
extension.tabs.create({ url });
}
}
}