Commit e47e7815 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[object-stats] Visualizer: Add mime type for unzipping

Tbr: ulan@chromium.org
No-try: true
Bug: v8:7266
Change-Id: I84195b61d3f47cf2152cf68c2dc17a391c7ffec7
Reviewed-on: https://chromium-review.googlesource.com/889058Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50892}
parent 8335a364
...@@ -52,7 +52,7 @@ class TraceFileReader extends HTMLElement { ...@@ -52,7 +52,7 @@ class TraceFileReader extends HTMLElement {
const reader = new FileReader(); const reader = new FileReader();
if (file.type === 'application/gzip') { if (['application/gzip', 'application/x-gzip'].includes(file.type)) {
reader.onload = (e) => { reader.onload = (e) => {
try { try {
const textResult = pako.inflate(e.target.result, {to: 'string'}); const textResult = pako.inflate(e.target.result, {to: 'string'});
......
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