diff options
author | yami <34216515+kn-yami@users.noreply.github.com> | 2019-07-30 15:27:59 +0200 |
---|---|---|
committer | yami <34216515+kn-yami@users.noreply.github.com> | 2019-07-30 15:27:59 +0200 |
commit | 23e68227a2e3f3946fa4fd5589f338e6b36a6e56 (patch) | |
tree | a8ad7e25d26d66b4d8bf0fdd3fda5574f2dce9b8 /devtools/client/jsonview/json-viewer.js | |
parent | 3170ee7692ef30ee67f26219b19b2b4115c01a56 (diff) | |
download | UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar.gz UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar.lz UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.tar.xz UXP-23e68227a2e3f3946fa4fd5589f338e6b36a6e56.zip |
Issue #1138 - Part 1: refactor the JSON Viewer stream converter
Mozilla Bug 1367894
Diffstat (limited to 'devtools/client/jsonview/json-viewer.js')
-rw-r--r-- | devtools/client/jsonview/json-viewer.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/devtools/client/jsonview/json-viewer.js b/devtools/client/jsonview/json-viewer.js index d96081da2..bf86ebbea 100644 --- a/devtools/client/jsonview/json-viewer.js +++ b/devtools/client/jsonview/json-viewer.js @@ -12,7 +12,6 @@ define(function (require, exports, module) { const { MainTabbedArea } = createFactories(require("./components/main-tabbed-area")); const json = document.getElementById("json"); - const headers = document.getElementById("headers"); let jsonData; @@ -27,13 +26,12 @@ define(function (require, exports, module) { jsonText: json.textContent, jsonPretty: null, json: jsonData, - headers: JSON.parse(headers.textContent), + headers: window.headers, tabActive: 0, prettified: false }; json.remove(); - headers.remove(); /** * Application actions/commands. This list implements all commands |