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 7e2a278 commit b2d3336Copy full SHA for b2d3336
src/browser/extension/window/remote.js
@@ -2,7 +2,22 @@ import React from 'react';
2
import { render } from 'react-dom';
3
import DevTools from 'remotedev-app';
4
5
-render(
6
- <DevTools/>,
7
- document.getElementById('root')
8
-);
+chrome.storage.local.get({
+ 'select-monitor': 'LogMonitor',
+ 's:hostname': null,
+ 's:port': null,
9
+ 's:secure': null
10
+}, options => {
11
+ render(
12
+ <DevTools
13
+ selectMonitor={options['select-monitor']}
14
+ socketOptions={
15
+ options['s:hostname'] && options['s:port'] ?
16
+ {
17
+ hostname: options['s:hostname'], port: options['s:port'], secure: options['s:secure']
18
+ } : undefined
19
+ }
20
+ />,
21
+ document.getElementById('root')
22
+ );
23
+});
0 commit comments