From 51ac9f7dcaa30ebf4ad4eeb7a2a768ca91c4515c Mon Sep 17 00:00:00 2001 From: Miner49ur <101815367+Miner49ur@users.noreply.github.com> Date: Sat, 7 Sep 2024 12:48:03 -0400 Subject: [PATCH] reverted PERSISTENT change in payload.mjs --- payload.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payload.mjs b/payload.mjs index d8c5733..41480cd 100644 --- a/payload.mjs +++ b/payload.mjs @@ -53,7 +53,7 @@ // w.setTimeout(function() { const blob_url = new Blob(["alert(1)"], { type: "text/html" }); - w.webkitRequestFileSystem(PERSISTENT, 2 * 1024 * 1024, async function (fs) { + w.webkitRequestFileSystem(TEMPORARY, 2 * 1024 * 1024, async function (fs) { function removeFile(file) { return new Promise(function (resolve, reject) { fs.root.getFile(file, { create: true }, function (entry) { @@ -118,7 +118,7 @@ async function createAndWriteFile() { function writeFile(filename, content) { return new Promise((resolve) => { - webkitRequestFileSystem(PERSISTENT, 2 * 1024 * 1024, function (fs) { + webkitRequestFileSystem(TEMPORARY, 2 * 1024 * 1024, function (fs) { fs.root.getFile(filename, { create: true }, function (entry) { entry.remove(function () { fs.root.getFile(filename, { create: true }, function (entry) {