Skip to content

Commit 0a0a2a8

Browse files
committed
display fix
1 parent b439cca commit 0a0a2a8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

static/extensions/DogeisCut/dogeiscutSet.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
switch (typeof x) {
8484
case "object":
8585
if (x === null) return "null"
86+
if (typeof x.jwArrayHandler == "function") {
87+
return x.jwArrayHandler()
88+
}
8689
if (typeof x.dogeiscutSetHandler == "function") {
8790
return x.dogeiscutSetHandler()
8891
}
@@ -104,6 +107,10 @@
104107
return `Set<${formatNumber(this.set.size)}>`
105108
}
106109

110+
jwArrayHandler() {
111+
return `Set<${formatNumber(this.set.size)}>`
112+
}
113+
107114
toString() {
108115
return `Set: {${JSON.stringify(Array.from(this.set)).slice(1, -1)}}`
109116
}

0 commit comments

Comments
 (0)