mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
Fix console.logs
This commit is contained in:
parent
9991ec6ff6
commit
228bc8fdd4
2 changed files with 3 additions and 4 deletions
|
|
@ -155,7 +155,6 @@ const unloadedSkinEpic = (actions, states) =>
|
|||
mergeMap(async ({ index }) => {
|
||||
const chunkSize = 100;
|
||||
const chunk = Math.floor(index / (chunkSize - 1));
|
||||
console.log({ chunk });
|
||||
switch (chunk) {
|
||||
case 0: {
|
||||
const page = await import("../page1.json");
|
||||
|
|
@ -202,7 +201,7 @@ const unloadedSkinEpic = (actions, states) =>
|
|||
return [page.default, chunk];
|
||||
}
|
||||
default:
|
||||
console.log("Going to server");
|
||||
console.log("Going to server for chucnk", chunk);
|
||||
}
|
||||
if (chunkState[chunk] != null) {
|
||||
return null;
|
||||
|
|
@ -213,8 +212,9 @@ const unloadedSkinEpic = (actions, states) =>
|
|||
chunk * chunkSize
|
||||
}&first=${chunkSize}`
|
||||
);
|
||||
console.log("Got from server for chucnk", chunk);
|
||||
|
||||
const body = await response.json();
|
||||
console.log("From api", body);
|
||||
return [body, chunk];
|
||||
}),
|
||||
filter(Boolean),
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ const defaultState = {
|
|||
export default function reducer(state = defaultState, action) {
|
||||
switch (action.type) {
|
||||
case "SET_SCALE": {
|
||||
console.log(action);
|
||||
return { ...state, scale: action.scale };
|
||||
}
|
||||
case "GOT_SKIN_DATA": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue