diff --git a/assets/format.js b/assets/format.js index 6843c3e..d62ed89 100644 --- a/assets/format.js +++ b/assets/format.js @@ -28,7 +28,7 @@ function format() { options.autosemicolon = true; } - if (typeof editor === undefined) { + if (typeof editor === 'undefined') { raw = document.getElementById('raw').value; } else { raw = editor.getValue(); @@ -36,7 +36,7 @@ function format() { beautified = cssbeautify(raw, options); - if (typeof viewer === undefined) { + if (typeof viewer === 'undefined') { document.getElementById('beautified').value = beautified; } else { viewer.setValue(beautified);