Fixed an out of bounds error caused by the failure to check the isChrome variable in a conditional branch.