Skip to content

Commit 9c066b5

Browse files
committed
feat: xhtml live previews
1 parent 2ec76cb commit 9c066b5

File tree

1 file changed

+3
-2
lines changed
  • src/extensions/default/Phoenix-live-preview

1 file changed

+3
-2
lines changed

src/extensions/default/Phoenix-live-preview/utils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ define(function (require, exports, module) {
5252

5353
function isPreviewableFile(filePath) {
5454
let extension = getExtension(filePath);
55-
return ['html', 'htm', 'jpg', 'jpeg', 'png', 'svg', 'pdf', 'md', 'markdown'].includes(extension.toLowerCase());
55+
return ['html', 'xhtml', 'htm', 'jpg', 'jpeg', 'png', 'svg',
56+
'pdf', 'md', 'markdown'].includes(extension.toLowerCase());
5657
}
5758

5859
function _isMarkdownFile(filePath) {
@@ -62,7 +63,7 @@ define(function (require, exports, module) {
6263

6364
function _isHTMLFile(filePath) {
6465
let extension = getExtension(filePath);
65-
return ['html', 'htm'].includes(extension.toLowerCase());
66+
return ['html', 'htm', 'xhtml'].includes(extension.toLowerCase());
6667
}
6768

6869
function getNoPreviewURL(){

0 commit comments

Comments
 (0)