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:
parent
c26a7cd89b
commit
2843459fcf
@ -17,7 +17,13 @@ function InfoScreen () {
|
|||||||
|
|
||||||
InfoScreen.prototype.render = function () {
|
InfoScreen.prototype.render = function () {
|
||||||
var state = this.props
|
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 (
|
return (
|
||||||
h('.flex-column.flex-grow', [
|
h('.flex-column.flex-grow', [
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user