Skip to content

Commit

Permalink
Fix comment hide persistor by tracking via simply pathname
Browse files Browse the repository at this point in the history
Fixes honestbleeps#3897

Reddit URLs generally contain all the unique canonical bits in the pathname, and the pathname stays constant. Query parameters and subdomain shouldn't affect whether a comment is hidden.
  • Loading branch information
jewel-andraia committed Jan 18, 2017
1 parent dcfc2a0 commit 5b5d138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/commentHidePersistor.js
Expand Up @@ -29,7 +29,7 @@ module.go = async () => {
let allHiddenThings = {};
let hiddenKeys = [];
let hiddenThings = [];
const hiddenThingsKey = location.href;
const hiddenThingsKey = location.pathname;
const maxKeys = 100;
const pruneKeysTo = 50;

Expand Down

0 comments on commit 5b5d138

Please sign in to comment.