Skip to content

Commit b06ed7a

Browse files
committed
data
1 parent e3b15ac commit b06ed7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: bookmarks/edit-manifest.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ globalThis[name] = async function editManifest() {
2323
const text = JSON.stringify(json, null, 2);
2424
alert("CHANGED\n" + text);
2525

26-
const blob = new Blob([text], { type: "application/manifest+json" });
27-
const editedURL = URL.createObjectURL(blob);
26+
// const blob = new Blob([text], { type: "application/manifest+json" });
27+
// const editedURL = URL.createObjectURL(blob);
28+
29+
const data = `data:application/manifest+json;utf8,${encodeURIComponent(text)}`;
30+
const editedURL = data;
2831

2932
manifestLink.href = editedURL;
3033
};

0 commit comments

Comments
 (0)