Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
facd183304 fav.js: handle undefined favorites 2025-02-12 23:09:22 +01:00
40bbda5027 fav.js: minor trim 2025-02-12 23:08:11 +01:00

View file

@ -23,7 +23,7 @@ function addBoard(){
add_favorites();
} //This adds the text inside the textbox to favorites, localStorage.favorites and the page
var favorites = JSON.parse(localStorage.favorites);
var favorites = localStorage.favorites ? JSON.parse(localStorage.favorites) : [];
Options.add_tab('fav-tab','star',_("Favorites"));
//Pregenerating list of boards