Only run if has window
1.1.6