Closed davwheat closed 3 years ago
At the moment, the ext attempts to preview the content after the upload succeeds, but this creates an error if attempted on a new discussion.
By wrapping the .preview() code in a typeof check, we can ensure that the post is only previewed if supported.
.preview()
typeof
At the moment, the ext attempts to preview the content after the upload succeeds, but this creates an error if attempted on a new discussion.
By wrapping the
.preview()
code in atypeof
check, we can ensure that the post is only previewed if supported.