diff --git a/src/scripts/app.tag b/src/scripts/app.tag index ad102d7..1d4af3c 100644 --- a/src/scripts/app.tag +++ b/src/scripts/app.tag @@ -129,18 +129,18 @@ document.addEventListener("click", function(event) { } }); +/* Mostly contains stuff that is preloaded depending on the page accessed initially */ +/* Not meant as the ultimate source of truth for everything */ self.state = { "pagenum" : 0, /* the current page of posts in the browse tab */ "browsed" : false, /* was a link clicked to a post yet? */ "page" : self.opts.page, "results" : self.decode(self.opts.results), - "start" : self.opts.start, "category_filter" : self.decode(self.opts.category_filter), "category_tag" : false, /* used if browse page accessed by a category tag */ "_id" : self.opts.postid.slice(-hashLength), "author" : self.opts.author, "title" : self.opts.title, - "loaded" : false, "initial" : document.getElementsByTagName("noscript")[0].textContent, "links" : self.decode(self.opts.links), "categories" : self.decode(self.opts.categories), diff --git a/src/website.py b/src/website.py index 49f4d15..b11f813 100755 --- a/src/website.py +++ b/src/website.py @@ -69,7 +69,6 @@ def NeverWhere(configfile=None): return { "quote" : quote, "dumps" : dumps, - "start" : 0, "results" : dumps([]), "postid" : initial_post["_id"], "postcontent" : postcontent,