From 722f1ffbc6fc1e61382a89b78205f7aaf1fc8ce1 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 12 Feb 2026 11:23:28 +0100 Subject: [PATCH] Remove `type === "arraybuffer"` support from the `fetchData` helper function After the previous patch there's no longer any call-site using that type. --- src/display/display_utils.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/display/display_utils.js b/src/display/display_utils.js index c8f66a97d..072366315 100644 --- a/src/display/display_utils.js +++ b/src/display/display_utils.js @@ -44,8 +44,6 @@ async function fetchData(url, type = "text") { throw new Error(response.statusText); } switch (type) { - case "arraybuffer": - return response.arrayBuffer(); case "blob": return response.blob(); case "bytes": @@ -71,7 +69,6 @@ async function fetchData(url, type = "text") { case "bytes": resolve(new Uint8Array(request.response)); return; - case "arraybuffer": case "blob": case "json": resolve(request.response);