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:
parent
17fea55c16
commit
b28fc414b0
2
404.php
2
404.php
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user