Infinite reload loop in Android 2.1

In Android 2.1 browser space in 'devicePixelRatio = ' is not trimmed so the cookie was never found, leading to an infinite loop of reloads