Skip to content

Commit

Permalink
Merge pull request #86 from mh7777777/master
Browse files Browse the repository at this point in the history
Initial load not working on physical devices.
  • Loading branch information
mh7777777 authored Sep 28, 2020
2 parents 450a703 + df367db commit 3de6f15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions widget/controllers/widget.home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3de6f15

Please sign in to comment.