1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-20 12:41:17 +01:00

Make removing board from favorites on 404 actually work

This commit is contained in:
8chan 2014-11-12 01:16:42 -08:00
parent 17fea55c16
commit b28fc414b0

View File

@ -35,7 +35,7 @@ $page = <<<EOT
var faves = JSON.parse(localStorage.favorites);
$.each(faves, function(k, v) {
if (window.location.pathname === '/' + v + '/') {
if ((window.location.pathname === '/' + v + '/') || (window.location.pathname === '/' + v)) {
faves.pop(v);
localStorage.favorites = JSON.stringify(faves);