Skip to content

Commit 98b9056

Browse files
committed
include error message when url not supported
1 parent c7e8b3a commit 98b9056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/web-preview.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ func (serv *UploadServer) handleWebPreview(c *gin.Context) {
331331

332332
// Still no html send an error to the parent
333333
if item.html == "" {
334-
item.html = "<script>window.parent.postMessage({ error: true }, '*');</script>"
334+
item.html = "<script>window.parent.postMessage({ error: 'not_supported' }, '*');</script>"
335335
}
336336

337337
// Decrease the waitgroup so other requests can complete

0 commit comments

Comments
 (0)