Start work on getting page content.
This commit is contained in:
parent
54b8f3ef80
commit
30eb6a4914
|
@ -93,7 +93,13 @@ export class RookeriesApp extends HTMLElement {
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
this.innerHTML = `${debugHeader}`;
|
const pageContent = window.localStorage.getItem(currentPage);
|
||||||
|
if (!pageContent) {
|
||||||
|
// TODO: Fetch the page...
|
||||||
|
}
|
||||||
|
|
||||||
|
const content = pageContent || `<h1>Loading...</h1>`;
|
||||||
|
this.innerHTML = `${debugHeader}${content}`;
|
||||||
|
|
||||||
const hyperlinks = document.querySelectorAll("a");
|
const hyperlinks = document.querySelectorAll("a");
|
||||||
hyperlinks.forEach((link) => {
|
hyperlinks.forEach((link) => {
|
||||||
|
|
Loading…
Reference in New Issue