mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Catch an error if this is not defined.
This commit is contained in:
parent
b9012a62e5
commit
106af9ec5b
@ -18,7 +18,14 @@ class ExtensionPlatform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPlatformInfo (cb) {
|
getPlatformInfo (cb) {
|
||||||
return extension.runtime.getPlatformInfo(cb)
|
var info
|
||||||
|
try {
|
||||||
|
info = extension.runtime.getPlatformInfo(cb)
|
||||||
|
} catch (e) {
|
||||||
|
log.debug(e)
|
||||||
|
info = undefined
|
||||||
|
}
|
||||||
|
return info
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user