X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=66aa2361cdab45295e840a8f73ecb7fde54e841f;hb=8d9ee18ba471106f59da6e8399aafcff59952e19;hp=60a38487778a55a91a8eff0d962386b9091cb73b;hpb=6ae5489a852538305421fdebe2c67d368907eeca;p=Sone.git
diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js
index 60a3848..66aa236 100644
--- a/src/main/resources/static/javascript/sone.js
+++ b/src/main/resources/static/javascript/sone.js
@@ -660,6 +660,16 @@ function getShownPostId() {
return $("#sone .post-id").text();
}
+/**
+ * Returns whether the current page is the âknown Sonesâ page.
+ *
+ * @returns {Boolean} true
if the current page is the âknown
+ * Sonesâ page, false
otherwise
+ */
+function isKnownSonesPage() {
+ return getPageId() == "known-sones";
+}
+
var loadedPosts = {};
var loadedReplies = {};