Quick fix for back link not working for unfurled mastodon links

This is obviously the wrong 'location'
This commit is contained in:
Lim Chee Aun 2023-03-08 23:33:53 +08:00
parent 66e068ee7b
commit cff8c90478

View file

@ -45,6 +45,7 @@ function handleContentLinks(opts) {
} else if (states.unfurledLinks[target.href]?.url) {
e.preventDefault();
e.stopPropagation();
states.prevLocation = location;
location.hash = `#${states.unfurledLinks[target.href].url}`;
}
};