From 27c4e588efce78f2e4067ad755de5613803f4f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 14 Jul 2015 10:52:44 +0200 Subject: [PATCH] fix minification bug --- gulpfile.js | 4 ++-- js/components/ascribe_uploader/react_s3_fine_uploader.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d786c29f..25af23bf 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -184,8 +184,8 @@ function bundle(watch) { .on('error', notify.onError('Error: <%= error.message %>')) .pipe(gulpif(!argv.production, sourcemaps.write())) // writes .map file .on('error', notify.onError('Error: <%= error.message %>')) - //.pipe(gulpif(argv.production, uglify())) - //.on('error', notify.onError('Error: <%= error.message %>')) + .pipe(gulpif(argv.production, uglify())) + .on('error', notify.onError('Error: <%= error.message %>')) .pipe(gulp.dest('./build/js')) .on('error', notify.onError('Error: <%= error.message %>')) .pipe(browserSync.stream()) diff --git a/js/components/ascribe_uploader/react_s3_fine_uploader.js b/js/components/ascribe_uploader/react_s3_fine_uploader.js index abf3ffe4..b9ef09fc 100644 --- a/js/components/ascribe_uploader/react_s3_fine_uploader.js +++ b/js/components/ascribe_uploader/react_s3_fine_uploader.js @@ -199,7 +199,7 @@ var ReactS3FineUploader = React.createClass({ let defer = new fineUploader.Promise(); let filename = this.state.uploader.getName(fileId); - fetch(this.props.keyRoutine.url, { + window.fetch(this.props.keyRoutine.url, { method: 'post', headers: { 'Accept': 'application/json', @@ -228,7 +228,7 @@ var ReactS3FineUploader = React.createClass({ createBlob(file) { let defer = new fineUploader.Promise(); - fetch(this.props.createBlobRoutine.url, { + window.fetch(this.props.createBlobRoutine.url, { method: 'post', headers: { 'Accept': 'application/json',