We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b15ac commit b06ed7aCopy full SHA for b06ed7a
bookmarks/edit-manifest.js
@@ -23,8 +23,11 @@ globalThis[name] = async function editManifest() {
23
const text = JSON.stringify(json, null, 2);
24
alert("CHANGED\n" + text);
25
26
- const blob = new Blob([text], { type: "application/manifest+json" });
27
- const editedURL = URL.createObjectURL(blob);
+ // const blob = new Blob([text], { type: "application/manifest+json" });
+ // const editedURL = URL.createObjectURL(blob);
28
+
29
+ const data = `data:application/manifest+json;utf8,${encodeURIComponent(text)}`;
30
+ const editedURL = data;
31
32
manifestLink.href = editedURL;
33
};
0 commit comments