Update window.d