Bureaucrats, Check users, Interface administrators, Push subscription managers, Suppressors, Administrators
435
edits
Explodabat (talk | contribs) No edit summary |
Explodabat (talk | contribs) No edit summary |
||
Line 122: | Line 122: | ||
returnPage(shipArr[i].name,fillPriceType,i); | returnPage(shipArr[i].name,fillPriceType,i); | ||
} | } | ||
console.log("ALL SHIP PAGE | console.log("ALL SHIP PAGE FETCH REQUESTS SENT"); | ||
} | } | ||
//fill values in shipArr | //fill values in shipArr | ||
Line 250: | Line 250: | ||
return 0; | return 0; | ||
}); | }); | ||
if(shipArr.length > 200) localStorage.setItem("storedArr",JSON.stringify(shipArr)); //make sure shipArr is sanitized before storing? //update localStorage with newly-sorted array | if(shipArr.length > 200){ | ||
localStorage.setItem("storedArr",JSON.stringify(shipArr)); //make sure shipArr is sanitized before storing? //update localStorage with newly-sorted array | |||
fillNavbox(); | |||
} | |||
else throw new Error('Error; ship array length lower than expected. Check for invalid items in cleanup') | |||
} | } | ||
//Outputs the ship array by replacing the inner content of the given html element. | //Outputs the ship array by replacing the inner content of the given html element. |