Skip to content

Commit e3b15ac

Browse files
committed
change start URL
1 parent 0ad6cf3 commit e3b15ac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bookmarks/edit-manifest.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ globalThis[name] = async function editManifest() {
1414
alert("got response");
1515
const json = await response.json();
1616
alert("got JSON");
17+
18+
const originalText = JSON.stringify(json, null, 2);
19+
alert(originalText);
20+
21+
json.start_url = document.location.toString();
22+
1723
const text = JSON.stringify(json, null, 2);
18-
alert(text);
24+
alert("CHANGED\n" + text);
1925

2026
const blob = new Blob([text], { type: "application/manifest+json" });
2127
const editedURL = URL.createObjectURL(blob);

0 commit comments

Comments
 (0)