mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed frontpage-sorting issue
This commit is contained in:
@@ -681,7 +681,12 @@ var Channel = {
|
||||
var newList = response.querySelector("#lists-script").innerHTML;
|
||||
newList = newList.trim().replace("window.lists = ", "");
|
||||
newList = newList.substring(0, newList.length);
|
||||
window.lists = JSON.parse(newList);
|
||||
try {
|
||||
window.lists = JSON.parse(newList);
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
console.log(newList);
|
||||
}
|
||||
response.querySelector("#lists-script").remove();
|
||||
Helper.removeElement("#sidenav-overlay");
|
||||
document.getElementsByTagName("main")[0].className = "center-align container";
|
||||
|
||||
Reference in New Issue
Block a user