In scenarios with no service workers, remove the need to fetch all pages when appviewer loads

This commit is contained in:
Abhinav Jha 2020-05-06 11:26:07 +05:30
parent 3ceedcc6eb
commit 126d6d6912

View File

@ -65,10 +65,11 @@ export function* initializeAppViewerSaga(
take(ReduxActionTypes.FETCH_ACTIONS_SUCCESS),
take(ReduxActionTypes.FETCH_PAGE_LIST_SUCCESS),
]);
yield put({
type: ReduxActionTypes.FETCH_ALL_PUBLISHED_PAGES,
});
if ("serviceWorker" in navigator) {
yield put({
type: ReduxActionTypes.FETCH_ALL_PUBLISHED_PAGES,
});
}
yield put({
type: ReduxActionTypes.INITIALIZE_PAGE_VIEWER_SUCCESS,