8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5cdbd0 commit e97c1c3Copy full SHA for e97c1c3
app/src/renderer/utils/formatter.js
@@ -5,8 +5,11 @@ class JSONFormatter {
5
6
JSONFormatter.install = function (Vue, options) {
7
Vue.directive('json-content', function (el, binding) {
8
- // console.log("display-json", el, binding);
+ // console.log('display-json', el, binding)
9
let renderer = new JsonFormatter(binding.value)
10
+ while (el.hasChildNodes()) {
11
+ el.removeChild(el.firstChild)
12
+ }
13
el.appendChild(renderer.render())
14
if (!document.getElementById('json-formatter-style')) {
15
let styleTag = document.createElement('style')
0 commit comments