We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d20ea commit bc1a6ddCopy full SHA for bc1a6dd
src/app.js
@@ -11,7 +11,7 @@ import network from './network';
11
import setup from './setup';
12
import MainView from './MainView';
13
14
-import { getActiveStore } from './redux';
+import { getActiveStore, dispatch, actions } from './redux';
15
16
function start() {
17
setImmediate(() => {
@@ -42,6 +42,11 @@ export function connect(config = {}) {
42
network.onError(loading);
43
network.onClose(() => loading('Server disconnected'));
44
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
+ }
50
}
51
52
export function connectWithArgsAsConfig(baseConfig = {}) {
0 commit comments