Commit 9146b7b4 authored by jboyson's avatar jboyson

Load html component when data is a jpeg

parent 483289a0
...@@ -31,6 +31,8 @@ export default { ...@@ -31,6 +31,8 @@ export default {
return 'text/plain'; return 'text/plain';
} else if (output.data['image/png']) { } else if (output.data['image/png']) {
return 'image/png'; return 'image/png';
} else if (output.data['image/jpeg']) {
return 'image/jpeg';
} else if (output.data['text/html']) { } else if (output.data['text/html']) {
return 'text/html'; return 'text/html';
} else if (output.data['image/svg+xml']) { } else if (output.data['image/svg+xml']) {
...@@ -53,6 +55,8 @@ export default { ...@@ -53,6 +55,8 @@ export default {
return CodeOutput; return CodeOutput;
} else if (output.data['image/png']) { } else if (output.data['image/png']) {
return ImageOutput; return ImageOutput;
} else if (output.data['image/jpeg']) {
return ImageOutput;
} else if (output.data['text/html']) { } else if (output.data['text/html']) {
return HtmlOutput; return HtmlOutput;
} else if (output.data['image/svg+xml']) { } else if (output.data['image/svg+xml']) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment