2 ms·
They seem to consistently mis-spell "community" in the code, which is kind of interesting: var __currentForum = window.CommuntiyForums&&CommuntiyForums.fi
by tyingq 5y ago
They seem to consistently mis-spell "community" in the code, which is kind of interesting:
var __currentForum =
window.CommuntiyForums&&CommuntiyForums.findCommuntiyHomepageByUrlPath()||'';
if(__currentForum&&__currentForum.hit){
lmdBrandVal = "Forum Details:"+ __currentForum.forum.board;
}else{
var __websiteInfo = sessionStorage&&sessionStorage.websiteInfo ? sessionStorage.websiteInfo : sessionStorage.currentCommuntiySite;
if(__websiteInfo&&JSON.parse(__websiteInfo).board) {
lmdBrandVal = "Forum Details:" + JSON.parse(__websiteInfo).board;
}
}
- zbuf 5y agoI inherited a codebase like this, from a developer coding in their native language. Function names or variables started with a typo, and they just carried on with tab/auto completion from then on. By the time I arrived the damage was wide and it was easier to leave it consistently wrong than try and fix across several codebases.