[fix] default `options` in window to {} if an object is not passed in.