Phonegap devce navigator->window

Phonegap interface Navigator has memeber device, but correct is window