message: fix net usage
diff: @@ -47,7 +47,9 @@ function handleResponse(response: IncomingMessage, reject: (any?: any) => void,
  }
  let download: (url: string, file?: string, cb?: (progress: number, total: number) => void) => Promise<Buffer | void>;
  try {
  - const net = require('electron').net
  + const electron = require('electron');
  + let net = electron.net ? electron.net : electron.remote.require('net')
  + if (!net) throw new Error()
  download = (url: string, file?: string, cb?: (progress: number, total: number) => void) => {
  const req = net.request(url);
  return new Promise<Buffer | void>((resolve, reject) => {
  