Start work on getting page content.

This commit is contained in:
Dorian 2019-08-02 17:40:13 -04:00
parent 54b8f3ef80
commit 30eb6a4914
1 changed files with 7 additions and 1 deletions

View File

@ -93,7 +93,13 @@ export class RookeriesApp extends HTMLElement {
</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");
hyperlinks.forEach((link) => {