Rearrange directories

This commit is contained in:
Yuya Ochiai
2015-12-22 23:29:33 +09:00
parent e7d48d6d0d
commit 1be5077ebe
8 changed files with 0 additions and 0 deletions

25
src/browser/index.jsx Normal file
View File

@@ -0,0 +1,25 @@
'use strict';
var MainPage = React.createClass({
render: function() {
var style = {
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
left: 0
};
// 'disablewebsecurity' is necessary to display external images.
// However, it allows also CSS/JavaScript.
// So webview should use 'allowDisplayingInsecureContent' as same as BrowserWindow.
return (
<webview style={ style } id="mainWebview" autosize="on" preload="webview/mattermost.js"></webview>
);
}
});
ReactDOM.render(
<MainPage />,
document.getElementById('content')
);