From df367db52243a80f70e7ae276576de8e3e7a4e8a Mon Sep 17 00:00:00 2001 From: Mustafa Hamza Date: Mon, 28 Sep 2020 02:01:47 +0200 Subject: [PATCH] Initial load not working on physical devices. --- widget/controllers/widget.home.controller.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/widget/controllers/widget.home.controller.js b/widget/controllers/widget.home.controller.js index 008994d..8aad982 100644 --- a/widget/controllers/widget.home.controller.js +++ b/widget/controllers/widget.home.controller.js @@ -372,6 +372,14 @@ WidgetHome.data.design.itemDetailsLayout = LAYOUTS.itemDetailsLayout[0].name; } currentLayout = WidgetHome.data.design.itemDetailsLayout; + if ( + buildfire && + buildfire.getContext() && + buildfire.getContext().device && + buildfire.getContext().device.platform !== 'web' + ) { + WidgetHome.loadMore(); + } }, error = function (err) { if (err && err.code !== STATUS_CODE.NOT_FOUND) { console.error('Error while getting data', err);