Make atom fullscreen automatically

I don’t know, I think this would be nice for each time it loads it goes fullscreen, checked this post and if it is correct, do I just do this?:

atom.getCurrentWindow().maximize()

I testing this, and it does not work, Do I need to put it under anything?