 {react_utils, theme, mixins, components, sounds, format_time, markdown, moment} = require './common.coffee'
 {Component, React, ReactDOM} = react_utils
 {div, form, input, b} = React.DOM
-{Log, log} = require '../log'
+{Log} = require '../log'
 
 electron = require 'electron'
 ewin = electron.remote.getCurrentWindow()


    render_all()

load_log()

addEventListener 'keydown', (event)->
    if event.keyCode == 123
        ewin.webContents.openDevTools({mode:'detach'})
    if (event.ctrlKey and event.keyCode == 82) or event.keyCode == 116 # ctrl + r or F5
        event.preventDefault()
        load_log()

    update_today()
    ReactDOM.render main_component(), app_element

load_log = (log)->
    final_entries = []
    entries_by_day = {}
    days_state = []
