How to code window.onload in a plugin for exposed states?

Is this right:

?

window isn’t on “instance”. window is just window.

Open your console and just try it:

#inception