Phonegap devce navigator->window

phonegap.d.ts, interface Navigator has memeber device, but correct is window