|
|
@ -126,7 +126,7 @@ define([
|
|
|
|
if (newState === STATE.INFINITE_SPINNER || newState === STATE.DELETED) {
|
|
|
|
if (newState === STATE.INFINITE_SPINNER || newState === STATE.DELETED) {
|
|
|
|
state = newState;
|
|
|
|
state = newState;
|
|
|
|
} else if (state === STATE.DISCONNECTED && newState !== STATE.INITIALIZING) {
|
|
|
|
} else if (state === STATE.DISCONNECTED && newState !== STATE.INITIALIZING) {
|
|
|
|
throw new Error("Cannot transition from DISCONNECTED to " + newState);
|
|
|
|
throw new Error("Cannot transition from DISCONNECTED to " + newState); // FIXME we are getting "DISCONNECTED to READY" on prod
|
|
|
|
} else if (state !== STATE.READY && newState === STATE.HISTORY_MODE) {
|
|
|
|
} else if (state !== STATE.READY && newState === STATE.HISTORY_MODE) {
|
|
|
|
throw new Error("Cannot transition from " + state + " to " + newState);
|
|
|
|
throw new Error("Cannot transition from " + state + " to " + newState);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|