Skip to content

Commit

Permalink
Persist remotedev-app options
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed May 17, 2016
1 parent 7e2a278 commit b2d3336
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/browser/extension/window/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@ import React from 'react';
import { render } from 'react-dom';
import DevTools from 'remotedev-app';

render(
<DevTools/>,
document.getElementById('root')
);
chrome.storage.local.get({
'select-monitor': 'LogMonitor',
's:hostname': null,
's:port': null,
's:secure': null
}, options => {
render(
<DevTools
selectMonitor={options['select-monitor']}
socketOptions={
options['s:hostname'] && options['s:port'] ?
{
hostname: options['s:hostname'], port: options['s:port'], secure: options['s:secure']
} : undefined
}
/>,
document.getElementById('root')
);
});

0 comments on commit b2d3336

Please sign in to comment.