<html>
 <head>
  <meta name="viewport" content="width=device-width, user-scalable=no">
  <link rel="stylesheet" href="../../core/foam.css">
  <link rel="stylesheet" href="style.css">
  <link rel="stylesheet" href="../../lib/mdui/style.css">
  <script language="javascript" src="../../core/bootFOAM.js"></script>
  <script language="javascript" src="../../lib/bookmarks/bookmark.js"></script>
  <script language="javascript" src="../../lib/email/email.js"></script>
  <script language="javascript" src="../../lib/mdui/AppController.js"></script>
  <script language="javascript" src="../../lib/mdui/view.js"></script>
  <script src="../../lib/gmail/ImportedModels.js"></script>
  <script src="../../lib/gmail/dao.js"></script>
  <script src="../mailreader/email.js"></script>
  <script language="javascript" src="gmail.js"></script>
 </head>
 <body>
  <script>
    // TODO: In the EMailCitationView it refers to mgmail. It should use context but that's not working.
    var w = Window.create({ window: window });
    var mgmail = MGmail.create({});
    w.view = mgmail;
  </script>
 </body>
</html>

<html>
 <head>
  <meta name="viewport" content="width=device-width, user-scalable=no">
  <link rel="stylesheet" href="../../core/foam.css">
  <link rel="stylesheet" href="style.css">
  <link rel="stylesheet" href="../../lib/mdui/style.css">
  <script language="javascript" src="../../core/bootFOAM.js"></script>
  <script language="javascript" src="../../lib/bookmarks/bookmark.js"></script>
  <script language="javascript" src="../../lib/email/email.js"></script>
  <script language="javascript" src="../../lib/mdui/AppController.js"></script>
  <script language="javascript" src="../../lib/mdui/view.js"></script>
  <script src="../../lib/gmail/ImportedModels.js"></script>
  <script src="../../lib/gmail/dao.js"></script>
  <script src="../mailreader/email.js"></script>
  <script language="javascript" src="gmail.js"></script>
 </head>
 <body>
  <script>
    // TODO: In the EMailCitationView it refers to mgmail. It should use context but that's not working.
    EasyOAuth2 = OAuth2Redirect;
    var w = Window.create({ window: window });
    var mgmail = MGmail.create({});
    w.view = mgmail;
  </script>
 </body>
</html>

Use the redirect version of oauth in mgmail.
Use the redirect version of oauth in mgmail.
