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

Make info page not chrome dependent

This commit is contained in:
Dan Finlay 2016-06-30 18:23:05 -07:00
parent c26a7cd89b
commit 2843459fcf

View File

@ -17,7 +17,13 @@ function InfoScreen () {
InfoScreen.prototype.render = function () {
var state = this.props
var manifest = chrome ? chrome.runtime.getManifest() : { version: '2.0.0' }
var manifest
try {
manifest = chrome.runtime.getManifest()
} catch (e) {
manifest = { version: '2.0.0' }
}
return (
h('.flex-column.flex-grow', [