frame
frame copied to clipboard
fix isVisible tray toggle before init error
This "cannot read property isVisible" error seems to be a result of the tray toggle function being called before the window object has fully initialised. We can avoid it by returning out of the toggle function in the cases where the window is not ready.