From 59eacdbc1c1363ca565874ae0a75e50a1c15379a Mon Sep 17 00:00:00 2001 From: Egor Philippov Date: Thu, 8 Oct 2015 16:02:36 -0700 Subject: [PATCH] testing with SC API --- .jshintrc | 3 ++- app/index.html | 2 ++ app/pods/components/music-tab/component.js | 4 ++++ app/styles/app.scss | 1 + config/environment.js | 6 +++--- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.jshintrc b/.jshintrc index 5d83178..68bc51a 100644 --- a/.jshintrc +++ b/.jshintrc @@ -5,7 +5,8 @@ "-Promise", "Dancer", "ID3", - "FileAPIReader" + "FileAPIReader", + "SC" ], "browser": true, "boss": true, diff --git a/app/index.html b/app/index.html index b20695a..c812ab4 100644 --- a/app/index.html +++ b/app/index.html @@ -17,6 +17,8 @@ + + diff --git a/app/pods/components/music-tab/component.js b/app/pods/components/music-tab/component.js index e9e7739..d4b34cf 100644 --- a/app/pods/components/music-tab/component.js +++ b/app/pods/components/music-tab/component.js @@ -558,6 +558,10 @@ export default Em.Component.extend(musicControlMixin, visualizerMixin, { } } }); + + SC.initialize({ + client_id: 'aeec0034f58ecd85c2bd1deaecc41594' + }); }, didInsertElement() { diff --git a/app/styles/app.scss b/app/styles/app.scss index 2aaac3f..1a7a714 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -150,6 +150,7 @@ md-progress-linear { .bootstrapTooltip md-icon { font-size: 22px; cursor: pointer; + -webkit-transform: translate3d(0, 0, 0); // hack for chrome to force hardware acceleration and stop flickering } md-list { diff --git a/config/environment.js b/config/environment.js index c185ae8..fe27e6f 100644 --- a/config/environment.js +++ b/config/environment.js @@ -21,14 +21,14 @@ module.exports = function(environment) { contentSecurityPolicy: { 'default-src': "'none'", - 'script-src': "'self' apis.google.com www.youtube.com s.ytimg.com 'unsafe-inline'", + 'script-src': "'self' connect.soundcloud.com", 'font-src': "'self' fonts.gstatic.com", 'connect-src': "'self' *", 'img-src': "'self' data:", 'media-src': "'self' blob:", 'style-src': "'self' 'unsafe-inline' fonts.googleapis.com", - 'object-src': "'self'", - 'frame-src': "'self' accounts.google.com content.googleapis.com www.youtube.com" + 'object-src': "'self' connect.soundcloud.com", + 'frame-src': "'self'" } };