Improve source editing

This commit is contained in:
foxster-mp4
2023-11-24 18:04:02 -08:00
parent d9be8d9461
commit 03275b1af1
3 changed files with 19 additions and 15 deletions

View File

@@ -7,12 +7,17 @@
//
import { sourceURL } from "../common/modules/constants.js";
import { formatString } from "../common/modules/utilities.js";
import { formatString, open } from "../common/modules/utilities.js";
import { NewsItem } from "../common/components/NewsItem.js";
import { AppHeader } from "../common/components/AppHeader.js";
import { main } from "../common/modules/main.js";
main(json => {
document.getElementById("edit").addEventListener("click", e => {
e.preventDefault();
open(`../?source=${sourceURL}`);
});
// Set "View All News" link
document.querySelector("#news a").href = `./news/?source=${sourceURL}`;
// Set "View All Apps" link