discord browser loading

This commit is contained in:
khlam 2019-10-06 23:54:38 -07:00
parent 59138de3a5
commit da7688f13b
4 changed files with 25 additions and 5 deletions

22
css/style.css Normal file
View File

@ -0,0 +1,22 @@
html, body{
width:100%;
height:100%;
margin:0px;
padding: 0;
overflow: hidden;
}
div {
width:100%;
height:100%;
}
webview {
height:100%;
width:100%;
scro
}
::-webkit-scrollbar {
display: none;
}

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Test</title>
<link type="text/css" rel="stylesheet" href="./css/style.css">
</head>
<body>
<div id="root"></div>

View File

@ -8,7 +8,7 @@ export let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({ width: 800, height: 600 })
mainWindow = new BrowserWindow({ width: 1200, height: 800 })
// and load the index.html of the app.
mainWindow.loadFile('index.html')

View File

@ -6,10 +6,7 @@ class Dashboard extends React.Component {
render () {
return (
<div>
<ButtonInput />
<p>
Version: {app.getVersion()}
</p>
<webview src="https://discordapp.com/login"></webview>
</div>
)
}