Skip to content

Commit 1fcbceb

Browse files
committed
Theme/Plugin Editor: Fix browser console errors for certain file extensions
1 parent c9f798e commit 1fcbceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme-plugin-editor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ initLoader().then( ( monaco ) => {
4545
} );
4646

4747
// Enable Emmet.
48-
if ( emmet ) {
48+
if ( emmet && language ) {
4949
if ( language.match( /htm|php/ ) ) {
5050
emmetHTML( monaco, [ 'html', 'php' ] );
5151
} else if ( language.match( /sass|scss|css|less/ ) ) {

0 commit comments

Comments
 (0)