ios emulator doesnt have window.device

use a good old regex to detect ios7 on emulator.