In scenarios with no service workers, remove the need to fetch all pages when appviewer loads
This commit is contained in:
parent
3ceedcc6eb
commit
126d6d6912
|
|
@ -65,10 +65,11 @@ export function* initializeAppViewerSaga(
|
||||||
take(ReduxActionTypes.FETCH_ACTIONS_SUCCESS),
|
take(ReduxActionTypes.FETCH_ACTIONS_SUCCESS),
|
||||||
take(ReduxActionTypes.FETCH_PAGE_LIST_SUCCESS),
|
take(ReduxActionTypes.FETCH_PAGE_LIST_SUCCESS),
|
||||||
]);
|
]);
|
||||||
|
if ("serviceWorker" in navigator) {
|
||||||
yield put({
|
yield put({
|
||||||
type: ReduxActionTypes.FETCH_ALL_PUBLISHED_PAGES,
|
type: ReduxActionTypes.FETCH_ALL_PUBLISHED_PAGES,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
yield put({
|
yield put({
|
||||||
type: ReduxActionTypes.INITIALIZE_PAGE_VIEWER_SUCCESS,
|
type: ReduxActionTypes.INITIALIZE_PAGE_VIEWER_SUCCESS,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user