Compare commits
No commits in common. "1c6c9a2d6ed00a0faa5c3438a3a14ed443118f3f" and "c648cfd2b3b767957297937dfcd6c28abeb4a147" have entirely different histories.
1c6c9a2d6e
...
c648cfd2b3
6
app.js
6
app.js
@ -31,12 +31,14 @@ const run = () => {
|
||||
|
||||
function createWindow() {
|
||||
// Create the browser window.
|
||||
const win = windowManager.createWindow(480, 420);
|
||||
const win = windowManager.createWindow(480, 320);
|
||||
|
||||
win.loadFile('./html/index.html');
|
||||
|
||||
attachTitlebarToWindow(win);
|
||||
win.webContents.setWindowOpenHandler(() => "deny");
|
||||
win.webContents.on('new-window', function (e, url) {
|
||||
e.preventDefault();
|
||||
});
|
||||
win.webContents.on('did-finish-load', function () {
|
||||
if (win.webContents.getZoomFactor() != 0.9)
|
||||
win.webContents.setZoomFactor(0.9)
|
||||
|
@ -6,13 +6,6 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="../assets/mdb.min.css" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
* {
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="fixed-sn mdb-skin-custom" data-spy="scroll" data-target="#scrollspy" data-offset="15"
|
||||
@ -37,7 +30,7 @@
|
||||
</h5>
|
||||
<div class="pt-1 mb-4">
|
||||
<button id="launch-btn" class="btn btn-primary btn-lg btn-block"
|
||||
type="button" style="background-color:#d6016f" disabled>Launch</button>
|
||||
type="button" style="background-color:#d6016f">Launch</button>
|
||||
</div>
|
||||
<button class="btn btn-dark btn-sm float-start" id="folder-btn">
|
||||
set osu! directory
|
||||
|
@ -33,9 +33,7 @@ module.exports = {
|
||||
|
||||
window.webContents.setUserAgent("EZPPLauncher");
|
||||
attachTitlebarToWindow(window);
|
||||
window.webContents.openDevTools({
|
||||
mode: "detach"
|
||||
});
|
||||
window.webContents.openDevTools();
|
||||
|
||||
return window;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user