From eb501ecf1b3460404d66facf606e40943fc65fce Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:22:36 -0500 Subject: [PATCH] give uv downloads the right name --- src/uv.sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uv.sw.js b/src/uv.sw.js index e11389b..80af907 100644 --- a/src/uv.sw.js +++ b/src/uv.sw.js @@ -155,7 +155,7 @@ class UVServiceWorker extends Ultraviolet.EventEmitter { } // downloads - if (request.destination === 'document') { + if (["document", "iframe"].includes(request.destination)) { const header = responseCtx.headers['content-disposition']; // validate header and test for filename