Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
babel-polyfill, found missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlester committed Sep 28, 2017
1 parent 8d33f7a commit 89c7758
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions email_app/.compilerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"application/javascript": {
"presets": [
["env", { "targets": { "electron": "1.6.0" } }],
"babel-polyfill",
"es2015",
"stage-0",
"react"
"react",
"babel-polyfill"
],
"sourceMaps": "none",
"env": {
Expand Down
2 changes: 1 addition & 1 deletion email_app/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const createWindow = () => {
mainWindow.loadURL(`file://${__dirname}/app.html`);

// Open the DevTools.
// mainWindow.webContents.openDevTools();
mainWindow.webContents.openDevTools();

// Emitted when the window is closed.
mainWindow.on('closed', () => {
Expand Down
3 changes: 2 additions & 1 deletion email_app/app/safenet_comm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { initializeApp, fromAuthURI } from '@maidsafe/safe-node-app';
import { getAuthData, saveAuthData, clearAuthData, genRandomEntryKey,
splitPublicIdAndService, deserialiseArray, parseUrl } from './utils/app_utils';
import pkg from '../package.json';
import 'babel-polyfill';

const APP_INFO = {
info: {
Expand Down Expand Up @@ -38,7 +39,7 @@ const requestShareMdAuth = async (app, mdPermissions) => {

const requestAuth = async () => {
const app = await initializeApp(APP_INFO.info);
const resp = app.auth.genAuthUri(APP_INFO.permissions, APP_INFO.opts);
const resp = await app.auth.genAuthUri(APP_INFO.permissions, APP_INFO.opts);
shell.openExternal(parseUrl(resp.uri));
return null;
}
Expand Down
1 change: 0 additions & 1 deletion email_app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-transform-async-to-generator": "^6.22.0",
"babel-plugin-webpack-loaders": "^0.7.1",
"babel-polyfill": "^6.13.0",
"babel-preset-env": "^1.2.1",
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.23.0",
Expand Down

0 comments on commit 89c7758

Please sign in to comment.