adjusting the logic to detect obsolete browsers