From f531998ade39269cd4ea4ee69dec94941b521e0c Mon Sep 17 00:00:00 2001 From: alialaqrabawi3 Date: Thu, 18 Jul 2024 00:06:30 +0300 Subject: [PATCH] fix indentation --- widget/controllers/widget.feed.controller.js | 30 ++++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/widget/controllers/widget.feed.controller.js b/widget/controllers/widget.feed.controller.js index 29218e8..6bf104f 100644 --- a/widget/controllers/widget.feed.controller.js +++ b/widget/controllers/widget.feed.controller.js @@ -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) {