Don't try and access window to note events in node mode