 ewin.setAlwaysOnTop true
 ewin.setVisibleOnAllWorkspaces true
 
-{Tray, Menu} = electron.remote
+{Tray, Menu, app} = electron.remote
 path = require 'path'
 trayMenuTemplate = [
 

]

trayMenu = Menu.buildFromTemplate trayMenuTemplate
ewin.app.tray?.destroy()
tray = ewin.app.tray = new Tray __dirname + '/../static_files/images/icon.png'
tray.setContextMenu trayMenu
tray.on 'click', ->
    show_window()
ewin.on 'minimize', ->
    hide_window()

win_position = localStorage.myoulog_win_position
if win_position



# Rendering main_component with ReactDOM in our HTML element `app`
app_element = document.getElementById 'app'

render_all= ->
    ReactDOM.render main_component(), app_element

log.load_promise.then ->
    render_all()
