Skip to content

Commit

Permalink
Corrected for incorrect casing when typing in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbruzzi committed Apr 16, 2024
1 parent 4006cb6 commit 1dab41b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,17 @@ router.beforeResolve((to, from, next) => {
// Sets global variables to user inputted URL path values
export function Routing(mainGlobal) {
if (router_info.pathBuilding) {
mainGlobal.bldg = router_info.pathBuilding.toUpperCase()
mainGlobal.bldg = router_info.pathBuilding.toUpperCase();
if (mainGlobal.bldg != "DCC" && mainGlobal.bldg != "VCC"
&& mainGlobal.bldg != "JEC" && mainGlobal.bldg != "JROWL"
&& mainGlobal.bldg != "CBIS" && mainGlobal.bldg != "MRC"
&& mainGlobal.bldg != "EMPAC" && mainGlobal.bldg != "RSDH"
&& mainGlobal.bldg != "EMPAC") {
mainGlobal.bldg = router_info.pathBuilding.substring(0, 1).toUpperCase() + router_info.pathBuilding.substring(1, mainGlobal.bldg.length)
} else {

}
if (mainGlobal.bldg.toUpperCase() == "'87_GYM") mainGlobal.bldg = "'87_Gym";
mainGlobal.floor = router_info.pathFloor
mainGlobal.room = router_info.pathRoom
router_info.checkValues = true
Expand Down

0 comments on commit 1dab41b

Please sign in to comment.