We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af541ff + aa3a02e commit 6d05104Copy full SHA for 6d05104
1 file changed
static/extensions/DogeisCut/dogeiscutObject.js
@@ -110,7 +110,7 @@
110
}
111
112
toString(pretty = false) {
113
- return JSON.stringify(this.object, null, pretty ? "\t" : null)
+ return JSON.stringify(this, null, pretty ? "\t" : null)
114
115
116
toVisualContent(border = '1px solid #77777777', keyBackground = '#77777724', background = '#ffffff00') {
@@ -267,7 +267,7 @@
267
Object.entries(this.object).map(([key, value]) => {
268
if (typeof value === "object" && value !== null) {
269
if (typeof value.toJSON === "function") return [key, value.toJSON()]
270
- //if (typeof value.toString === "function") return [key, value.toString()]
+ if (typeof value.toString === "function") return [key, value.toString()]
271
return [key, JSON.stringify(value)]
272
273
return [key, value]
0 commit comments