From 11aebe9add1f730ff244317053c25e0098d013f2 Mon Sep 17 00:00:00 2001 From: briandennis Date: Thu, 8 Feb 2018 11:19:18 -0600 Subject: [PATCH] set language to auto on file drop --- pages/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }) } }} >