From 3f20bd1cd3d046dacaf2d223728624c17bc3653a Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 9 Nov 2020 21:22:35 +0000 Subject: [PATCH] Make feeds linkable --- views/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/index.html b/views/index.html index 5cd152f..e0fc4b5 100644 --- a/views/index.html +++ b/views/index.html @@ -183,6 +183,7 @@ this.selectedItem = undefined; this.items.forEach(item => item.Read = item.Read || item.PendingRead); this.selectedFeed = feed; + window.location.hash = feed; }, loadItem(item) { if (this.selectedItem === item.ID) { @@ -342,6 +343,9 @@ ]) .then(() => { this.setBusy(false); + if (window.location.hash.length > 1) { + this.loadFeed(window.location.hash.substr(1)); + } }) .catch(err => { console.error(err);