Skip to content

Commit 92ff5ea

Browse files
committed
Browser check for instanceof File
1 parent 02667f2 commit 92ff5ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/client/SuperDebug.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
if (value instanceof Error) {
199199
return '#}E#' + `${value.name}: ${value.message || value.cause || '(No error message)'}`;
200200
}
201-
if (typeof this === 'object' && this[key] instanceof File) {
201+
if (browser && typeof this === 'object' && this[key] instanceof File) {
202202
return fileToJSON(this[key]);
203203
}
204204
if (browser && typeof this === 'object' && this[key] instanceof FileList) {

0 commit comments

Comments
 (0)