Bug 953184 - Do not show an error if user cancels the file chooser dialog when importing a CSS file in Devtools Style Editor. r=harth

This commit is contained in:
Sami Jaktholm 2014-01-03 09:29:05 -05:00
Родитель 1299ab4f19
Коммит f99f165062
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -238,7 +238,7 @@ StyleEditorUI.prototype = {
{
let onFileSelected = function(file) {
if (!file) {
this.emit("error", LOAD_ERROR);
// nothing selected
return;
}
NetUtil.asyncFetch(file, (stream, status) => {