 {config, proxy} = window
 {setBounds, getBounds} = remote.require './lib/utils'
 WindowManager = remote.require './lib/window'
-
-window._delay = false
 
 # Initial
 # $('kan-game webview')?.style?.height = $('kan-game webview /deep/ object[is=browserplugin]')?.style?.height = "0px"

    else
      $('kan-game').style.flex = Math.floor(window.webviewFactor * 800)
      $('poi-app').style.flex = window.innerWidth - Math.floor(window.webviewFactor * 800)
  if !window._delay
    adjustSize()
  else
    window._delay = false

handleTitleSet = ->
  try

    $('kan-game #webview-wrapper')?.style?.marginLeft = "#{Math.max(0, Math.floor((window.innerWidth - Math.floor(800 * factor)) / 2.0))}px"
    $('kan-game')?.style?.marginTop = '0'

adjustSize()

adjustPayitem = ->
  webview = $('kan-game webview')
