mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-06-07 01:29:27 +00:00
Cleaned up some unnecessary spaces
This commit is contained in:
parent
4d57fc494c
commit
8821a4749f
|
@ -6,9 +6,6 @@ const { getIsDevMode } = require("./devmode");
|
||||||
const windowList = {};
|
const windowList = {};
|
||||||
let mainWindow;
|
let mainWindow;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getMainWindow() {
|
function getMainWindow() {
|
||||||
return mainWindow;
|
return mainWindow;
|
||||||
}
|
}
|
||||||
|
@ -76,7 +73,6 @@ function createWindow() {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
mainWindow.loadFile(path.join(__dirname, "../renderer/index.html"));
|
mainWindow.loadFile(path.join(__dirname, "../renderer/index.html"));
|
||||||
|
|
||||||
|
@ -86,7 +82,6 @@ function createWindow() {
|
||||||
// Ensure we create child windows with the correct settings
|
// Ensure we create child windows with the correct settings
|
||||||
mainWindow.webContents.on("new-window", handleNewWindow);
|
mainWindow.webContents.on("new-window", handleNewWindow);
|
||||||
|
|
||||||
|
|
||||||
if (getIsDevMode()) {
|
if (getIsDevMode()) {
|
||||||
mainWindow.webContents.toggleDevTools();
|
mainWindow.webContents.toggleDevTools();
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,8 +98,6 @@ window.addEventListener("keyup", function (event) {
|
||||||
inputQueue.push({ type: "keyup", keyCode: event.keyCode });
|
inputQueue.push({ type: "keyup", keyCode: event.keyCode });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
INPUT_BUFFER_SIZE,
|
INPUT_BUFFER_SIZE,
|
||||||
inputBuffer,
|
inputBuffer,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user