Skip to content

Commit

Permalink
updated embedded chat (youtube changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eruyome committed Jan 14, 2017
1 parent 1010602 commit 3b05e30
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 129 deletions.
3 changes: 2 additions & 1 deletion dist/assets/css/app.css
Expand Up @@ -6228,7 +6228,8 @@ body {
position: absolute; }
.chat-view .refreshFrame {
position: absolute;
right: 18px;
right: 45px;
top: 11px;
cursor: pointer;
padding: 3px;
z-index: 1; }
Expand Down
10 changes: 3 additions & 7 deletions dist/assets/js/app.js
Expand Up @@ -10244,13 +10244,10 @@ return jQuery;
this.height = 432;
}();
$scope.chat = new function() {
this.domain = 'https://www.youtube.com/live_chat?v=';
this.domain = 'https://gaming.youtube.com/live_chat?v=';
this.id = $scope.streamVideoId;
this.embedDomain = 'embed_domain=' + window.location.hostname;
this.theme = 'dark_theme=1';
this.gaming = 'from_gaming=1';
//this.url = this.domain + this.id + '&' + this.embedDomain + '&' + this.theme + '&' + this.gaming + '&enablejsapi=1';
this.url = this.domain + this.id + '&' + this.embedDomain + '&' + this.theme + '&enablejsapi=1';
this.url = this.domain + this.id + '&' + this.embedDomain + '&enablejsapi=1';
this.width = 400;
}();
/* ng youtube embed */
Expand Down Expand Up @@ -10886,8 +10883,7 @@ return jQuery;
$scope.scrollToTop();
$scope.data.views = item.views;
$scope.chat.id = item.id;
$scope.chat.url = $scope.chat.domain + $scope.chat.id + '&' + $scope.chat.embedDomain + '&'
+ $scope.chat.theme; // + '&' + $scope.chat.gaming;
$scope.chat.url = $scope.chat.domain + $scope.chat.id + '&' + $scope.chat.embedDomain;
};

/* Init Load Data */
Expand Down

0 comments on commit 3b05e30

Please sign in to comment.