-{app, BrowserWindow, ipcMain, nativeImage, Tray} = require 'electron'
+{app, BrowserWindow, ipcMain, Tray} = require 'electron'
 path = require 'path-extra'
 fs = require 'fs-extra'
 


  # Tray icon
  if process.platform == 'win32'
    global.appIcon = appIcon = new Tray(path.join(ROOT, 'assets', 'icons', 'poi.ico'))
    appIcon.on 'click', ->
      win = mainWindow
      if win.isMinimized() then win.restore() else win.show()

    y: y
    width: width
    height: height
    title: 'poi'
    icon: poiIconPath
    resizable: config.get 'poi.content.resizeable', true
    alwaysOnTop: config.get 'poi.content.alwaysOnTop', false
    titleBarStyle: 'hidden'
    webPreferences:
      plugins: true
      enableLargerThanScreen: true
  # Default menu
  mainWindow.reloadArea = 'kan-game webview'
  mainWindow.setMenu null if process.platform isnt 'darwin'
  mainWindow.loadURL "file://#{__dirname}/index.html"
  if config.get 'poi.window.isMaximized', false
    mainWindow.maximize()
