Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AliAlaqrabawi3 committed Jul 17, 2024
1 parent 4657c48 commit f531998
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions widget/controllers/widget.feed.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,21 +514,21 @@
});

WidgetFeed.getThumbnail = function(video) {
var isTablet = $rootScope.deviceWidth >= 768;
const layoutName = WidgetFeed.data.design.itemListLayout;
const thumbnails = video.snippet.thumbnails;
const maxres = thumbnails.maxres ? thumbnails.maxres.url : null;
const standard = thumbnails.standard ? thumbnails.standard.url : null;
const high = thumbnails.high ? thumbnails.high.url : null;
const medium = thumbnails.medium ? thumbnails.medium.url : null;

if (isTablet) {
return maxres || standard || high || medium;
}
if (layoutName === "List_Layout_3") {
return standard || high || medium;
}
return medium;
var isTablet = $rootScope.deviceWidth >= 768;
const layoutName = WidgetFeed.data.design.itemListLayout;
const thumbnails = video.snippet.thumbnails;
const maxres = thumbnails.maxres ? thumbnails.maxres.url : null;
const standard = thumbnails.standard ? thumbnails.standard.url : null;
const high = thumbnails.high ? thumbnails.high.url : null;
const medium = thumbnails.medium ? thumbnails.medium.url : null;

if (isTablet) {
return maxres || standard || high || medium;
}
if (layoutName === "List_Layout_3") {
return standard || high || medium;
}
return medium;
};

WidgetFeed.bookmark = function($event, video) {
Expand Down

0 comments on commit f531998

Please sign in to comment.