discord browser loading
This commit is contained in:
parent
59138de3a5
commit
da7688f13b
22
css/style.css
Normal file
22
css/style.css
Normal 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;
|
||||
}
|
@ -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>
|
||||
|
2
main.js
2
main.js
@ -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')
|
||||
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user