Skip to content

Commit

Permalink
reverted PERSISTENT change in payload.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Miner49ur committed Sep 7, 2024
1 parent dd8b835 commit 51ac9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions payload.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 51ac9f7

Please sign in to comment.