add promise polyfill

This commit is contained in:
catarak 2016-07-22 12:42:38 -04:00
parent 6f3db24d9f
commit 4c5fafe251
3 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,7 @@
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import DevTools from './components/DevTools';
require('es6-promise').polyfill();
class App extends React.Component {
constructor(props, context) {

View file

@ -1,11 +1,10 @@
import React, { PropTypes } from 'react';
const Isvg = require('react-inlinesvg');
const InlineSVG = require('react-inlinesvg');
const playUrl = require('../../../images/play.svg');
const logoUrl = require('../../../images/p5js-logo.svg');
const stopUrl = require('../../../images/stop.svg');
const preferencesUrl = require('../../../images/preferences.svg');
const classNames = require('classnames');
import classNames from 'classnames';
function Toolbar(props) {
let playButtonClass = classNames({
@ -25,13 +24,13 @@ function Toolbar(props) {
<div className="toolbar">
<img className="toolbar__logo" src={logoUrl} alt="p5js Logo" />
<button className={playButtonClass} onClick={props.startSketch} id="play-button">
<Isvg src={playUrl} alt="Play Sketch" />
<InlineSVG src={playUrl} alt="Play Sketch" />
</button>
<label htmlFor="play-button" className="toolbar__button-label">
play
</label>
<button className={stopButtonClass} onClick={props.stopSketch} id="stop-button">
<Isvg src={stopUrl} alt="Stop Sketch" />
<InlineSVG src={stopUrl} alt="Stop Sketch" />
</button>
<label htmlFor="stop-button" className="toolbar__button-label">
stop
@ -59,7 +58,7 @@ function Toolbar(props) {
onClick={props.openPreferences}
id="preferences-button"
>
<Isvg src={preferencesUrl} alt="Show Preferences" />
<InlineSVG src={preferencesUrl} alt="Show Preferences" />
</button>
<label htmlFor="preferences-button" className="toolbar__button-label">
preferences

View file

@ -70,6 +70,7 @@
"csslint": "^0.10.0",
"dotenv": "^2.0.0",
"dropzone": "^4.3.0",
"es6-promise": "^3.2.1",
"escape-string-regexp": "^1.0.5",
"eslint-loader": "^1.3.0",
"express": "^4.13.4",