 
 if process? then do ->
   gui = require 'nw.gui'; crypto = require 'crypto'; fs = require 'fs'; nomnom = require 'nomnom'
-  path = require 'path'; {spawn} = require 'child_process'; {Proxy} = require './proxy'
+  path = require 'path'; {spawn} = require 'child_process'; proxy = require './proxy'
 
   if process.env.PWD then process.chdir process.env.PWD # see https://github.com/nwjs/nw.js/issues/648
   D.nwjs = true; D.process = process; gui.Screen.Init(); nww = gui.Window.get()


  # Debugging utilities
  $(document).on 'keydown', '*', 'ctrl+f12', ->
    {log} = require './proxy'
    lw = open ''
    lw.document.write '''
      <html>

      onevent: ({data}) -> (for f in @[data[0]] or [] then f data[1..]...); return
      on: (e, f) -> (@[e] ?= []).push f; @
    socket = new LocalSocket; socket1 = new LocalSocket; socket.other = socket1; socket1.other = socket
    setTimeout (-> proxy.Proxy() socket1), 1
    socket

  # These two are overridden for the Mac
