message: Fix cookie not fetching properly for chat in client.
  Fixes:
diff: @@ -29,7 +29,8 @@ export interface ChatNewMessageEvent {
  message: ChatMessage;
  }
  -async function getCookie(name: string) {
  +function getCookie(name: string): Promise<string | undefined> {
  + return new Promise(resolve => {
  // Within Client we have to access it connectedthis way.
  if (GJ_IS_CLIENT) {
  const gui = require('nw.gui') as typeof nwGui;
  @@ -41,9 +42,9 @@ async function getCookie(name: string) {
  },
  (cookieData: any) => {
  if (!cookieData) {
  - return undefined;
  + return resolve(undefined);
  }
  - return cookieData.value;
  + return resolve(cookieData.value);
  }
  );
  } else {
  @@ -56,11 +57,12 @@ async function getCookie(name: string) {
  y = ARRcookies[i].substr(ARRcookies[i].indexOf('=') + 1);
  x = x.replace(/^\s+|\s+$/g, '');
  if (x === name) {
  - return unescape(y);
  + return resolve(unescape(y));
  }
  }
  - return undefined;
  + return resolve(undefined);
  }
  + });
  }
  export class ChatClient {
  