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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Test</title> <title>Test</title>
<link type="text/css" rel="stylesheet" href="./css/style.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@ -8,7 +8,7 @@ export let mainWindow
function createWindow () { function createWindow () {
// Create the browser window. // 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. // and load the index.html of the app.
mainWindow.loadFile('index.html') mainWindow.loadFile('index.html')

View File

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