Skip to content

Commit 6d05104

Browse files
authored
Merge pull request #488 from DogeisCut/extension-dogeiscutObject
oops
2 parents af541ff + aa3a02e commit 6d05104

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

static/extensions/DogeisCut/dogeiscutObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
}
111111

112112
toString(pretty = false) {
113-
return JSON.stringify(this.object, null, pretty ? "\t" : null)
113+
return JSON.stringify(this, null, pretty ? "\t" : null)
114114
}
115115

116116
toVisualContent(border = '1px solid #77777777', keyBackground = '#77777724', background = '#ffffff00') {
@@ -267,7 +267,7 @@
267267
Object.entries(this.object).map(([key, value]) => {
268268
if (typeof value === "object" && value !== null) {
269269
if (typeof value.toJSON === "function") return [key, value.toJSON()]
270-
//if (typeof value.toString === "function") return [key, value.toString()]
270+
if (typeof value.toString === "function") return [key, value.toString()]
271271
return [key, JSON.stringify(value)]
272272
}
273273
return [key, value]

0 commit comments

Comments
 (0)