Merge pull request #1059 from AnonymousRandomPerson/search-subreddit

Allowed searching by subreddit
This commit is contained in:
Cheng Hann Gan 2022-04-07 22:00:45 -04:00 committed by GitHub
commit 784eec2d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

3
.gitignore vendored
View file

@ -11,4 +11,5 @@ web/_js/minified.js
allCharacters.txt
combined.js
*.DS_Store
.vscode/
.vscode/
_img/place/

View file

@ -393,6 +393,7 @@ function initView(){
return (
value.name.toLowerCase().indexOf(filter) !== -1
|| value.description.toLowerCase().indexOf(filter) !== -1
|| value.subreddit && value.subreddit.toLowerCase().indexOf(filter) !== -1
);
});
document.getElementById("atlasSize").innerHTML = "Found "+sortedAtlas.length+" entries.";