Skip to content

Commit 7fbe63f

Browse files
authored
Merge pull request #143 from NenoR96/bizaps
offline mode hotfix
2 parents 6e467ac + f7a4e59 commit 7fbe63f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

widget/cacheManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ let cacheManager = {
160160
options = {
161161
path: "/data/pluginMediaCenterRss/",
162162
fileName: "cache_" + this.instanceId + ".txt",
163+
content: JSON.stringify(data),
163164
}
164165
} else {
165166
options = {

widget/controllers/widget.home.controller.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,12 @@
440440
//if settings data contains rssUrl proceed with old logic
441441
if (!settings.data.content.feeds?.length && settings.data.content.rssUrl) {
442442
cacheManager.getItem().then((data) => {
443-
if (!data || !WidgetHome.data.content || data.rssUrl != WidgetHome.data.content.rssUrl) return;
443+
if (!data || !WidgetHome.data.content || data.rssUrl != WidgetHome.data.content.rssUrl) {
444+
WidgetHome.isItems = false;
445+
WidgetHome.loading = false;
446+
if (!$scope.$$phase) $scope.$digest();
447+
return;
448+
}
444449
getFeedDataSuccess(data);
445450
});
446451
currentRssUrl = WidgetHome.data.content.rssUrl;

0 commit comments

Comments
 (0)