Compare commits

..

No commits in common. "1c6c9a2d6ed00a0faa5c3438a3a14ed443118f3f" and "c648cfd2b3b767957297937dfcd6c28abeb4a147" have entirely different histories.

3 changed files with 6 additions and 13 deletions

6
app.js
View File

@ -31,12 +31,14 @@ const run = () => {
function createWindow() { function createWindow() {
// Create the browser window. // Create the browser window.
const win = windowManager.createWindow(480, 420); const win = windowManager.createWindow(480, 320);
win.loadFile('./html/index.html'); win.loadFile('./html/index.html');
attachTitlebarToWindow(win); attachTitlebarToWindow(win);
win.webContents.setWindowOpenHandler(() => "deny"); win.webContents.on('new-window', function (e, url) {
e.preventDefault();
});
win.webContents.on('did-finish-load', function () { win.webContents.on('did-finish-load', function () {
if (win.webContents.getZoomFactor() != 0.9) if (win.webContents.getZoomFactor() != 0.9)
win.webContents.setZoomFactor(0.9) win.webContents.setZoomFactor(0.9)

View File

@ -6,13 +6,6 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="../assets/mdb.min.css" rel="stylesheet" /> <link href="../assets/mdb.min.css" rel="stylesheet" />
<style>
* {
user-select: none;
-webkit-user-select: none;
}
</style>
</head> </head>
<body class="fixed-sn mdb-skin-custom" data-spy="scroll" data-target="#scrollspy" data-offset="15" <body class="fixed-sn mdb-skin-custom" data-spy="scroll" data-target="#scrollspy" data-offset="15"
@ -37,7 +30,7 @@
</h5> </h5>
<div class="pt-1 mb-4"> <div class="pt-1 mb-4">
<button id="launch-btn" class="btn btn-primary btn-lg btn-block" <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> </div>
<button class="btn btn-dark btn-sm float-start" id="folder-btn"> <button class="btn btn-dark btn-sm float-start" id="folder-btn">
set osu! directory set osu! directory

View File

@ -33,9 +33,7 @@ module.exports = {
window.webContents.setUserAgent("EZPPLauncher"); window.webContents.setUserAgent("EZPPLauncher");
attachTitlebarToWindow(window); attachTitlebarToWindow(window);
window.webContents.openDevTools({ window.webContents.openDevTools();
mode: "detach"
});
return window; return window;
}, },