diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-09-14 15:55:10 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-09-14 15:55:10 +0200 |
commit | ebbdadb4b6bd59e57b0eec8e280c7c5c12453167 (patch) | |
tree | 8f9fdbd1cf0e2d1b79884dfe15828f3c98f28da6 /pages/show-db.ts | |
parent | fc6db1824e6974898f177ffb0ffd2eb138a653ce (diff) | |
download | wallet-core-ebbdadb4b6bd59e57b0eec8e280c7c5c12453167.tar.xz |
sort out libs / fix warnings
Diffstat (limited to 'pages/show-db.ts')
-rw-r--r-- | pages/show-db.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/show-db.ts b/pages/show-db.ts index 0a3a5bd46..71e74388b 100644 --- a/pages/show-db.ts +++ b/pages/show-db.ts @@ -48,6 +48,10 @@ function prettyPrint(obj: any) { document.addEventListener("DOMContentLoaded", () => { chrome.runtime.sendMessage({type: 'dump-db'}, (resp) => { - document.getElementById('dump').innerHTML = prettyPrint(resp); + const el = document.getElementById('dump'); + if (!el) { + throw Error(); + } + el.innerHTML = prettyPrint(resp); }); }); |