Skip to content

Commit 386d0aa

Browse files
committed
Html code
1 parent e2b4eb3 commit 386d0aa

File tree

1 file changed

+7
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/files/components/file-viewer

1 file changed

+7
-1
lines changed

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,13 @@ interface FileViewerProps {
204204

205205
function isCodeFile(file: { type: string; name: string }): boolean {
206206
const ext = getFileExtension(file.name)
207-
return SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number])
207+
return (
208+
SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number]) ||
209+
ext === 'html' ||
210+
ext === 'htm' ||
211+
ext === 'xml' ||
212+
ext === 'svg'
213+
)
208214
}
209215

210216
function resolveCodeEditorLanguage(file: { type: string; name: string }): CodeEditorLanguage {

0 commit comments

Comments
 (0)