Skip to content

Commit bc1a6dd

Browse files
committed
fix(Renderer): Allow to start with local renderer
1 parent 03d20ea commit bc1a6dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import network from './network';
1111
import setup from './setup';
1212
import MainView from './MainView';
1313

14-
import { getActiveStore } from './redux';
14+
import { getActiveStore, dispatch, actions } from './redux';
1515

1616
function start() {
1717
setImmediate(() => {
@@ -42,6 +42,11 @@ export function connect(config = {}) {
4242
network.onError(loading);
4343
network.onClose(() => loading('Server disconnected'));
4444
network.connect(config);
45+
46+
// Configure renderer to local if asked for
47+
if (config.renderer) {
48+
dispatch(actions.view.setRemoteRendering(config.renderer === 'remote'));
49+
}
4550
}
4651

4752
export function connectWithArgsAsConfig(baseConfig = {}) {

0 commit comments

Comments
 (0)