diff --git a/pages/editor.js b/pages/editor.js index 8f03d32..9373e6a 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -202,7 +202,7 @@ class Editor extends React.Component { backgroundMode: 'image' }) } else { - this.setState({ code: file.content }) + this.setState({ code: file.content, language: 'auto' }) } }} >