mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 09:17:09 +08:00
PreviewFactory.js const highlighterType is being set as 1 of 2 variables but the order in which it checked these variables was incorrect. The current mimeType should be checked prior to the canonicalMimeType9(). Reversed the order. FormatterWorker.js Directly visited minified asset files are given a mimeType of application/javascript on page load. On our FormatterWorker file, we did not have a case that would format this mimeType. Added the mimeType of ‘application/javascript’ to our switch statement allowing it to format with the same settings currently set on mimeType ‘text/javascript’. Pretty printing of directly visited minified asset files did not work on both tabs. https://www.loom.com/share/e127dff2f6bf41b4bce00e6b0ed9c55f R=jacktfranklin@chromium.org Fixed: 1019785 Change-Id: Ib43e9c255129da95492bdfeaba7651964685626f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2572038 Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>