Remove buggy auto-detection from website

Closes #1565
This commit is contained in:
Liam Newman 2019-01-13 13:28:50 -08:00
parent fd7ebd79a2
commit b50ef5ec4b
2 changed files with 1 additions and 2 deletions

View File

@ -163,7 +163,6 @@
<div style="line-height: 0">
<select name="language" id="language">
<option value="auto">Auto Detect</option>
<option value="css">CSS</option>
<option value="html">HTML</option>
<option value="js">JavaScript</option>

View File

@ -185,7 +185,7 @@ function beautify() {
var selectedOptions = JSON.stringify(opts, null, 2);
$('#options-selected').val(selectedOptions);
if (language === 'html' || (language === 'auto' && looks_like_html(source))) {
if (language === 'html') {
output = the.beautifier.html(source, opts);
} else if (language === 'css') {
output = the.beautifier.css(source, opts);