Fallback with iframed soundcloud player for rate-limit reached

- Messes up history of current tab, but it's better than not playing any music
This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-25 17:49:49 +02:00
parent e5221ad88b
commit 39a2fc6532
12 changed files with 271 additions and 96 deletions

View File

@@ -2,6 +2,7 @@ var gulp = require('gulp'),
gutil = require('gulp-util'),
uglify = require('gulp-uglify'),
//sourcemaps = require('gulp-sourcemaps'),
gutil = require('gulp-util'),
concat = require('gulp-concat'),
cssnano = require('gulp-cssnano');
@@ -38,7 +39,7 @@ gulp.task('js', function () {
compress: true,
enclose: true,
}))
.on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); })
//.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('server/public/assets/dist'));
});
@@ -52,6 +53,7 @@ gulp.task('embed', function () {
compress: true,
enclose: true
}))
.on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); })
//.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('server/public/assets/dist'));
});
@@ -65,6 +67,7 @@ gulp.task('token', function() {
compress: true,
enclose: true
}))
.on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); })
//.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('server/public/assets/dist'));
@@ -79,6 +82,7 @@ gulp.task('callback', function () {
compress: true,
enclose: true
}))
.on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); })
//.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('server/public/assets/dist'));
@@ -97,6 +101,7 @@ gulp.task('remotecontroller', function () {
compress: true,
enclose: true
}))
.on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); })
//.pipe(sourcemaps.write('maps'))
.pipe(gulp.dest('server/public/assets/dist'));