Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit baa7ebc

Browse files
committed
prettier
1 parent 6537841 commit baa7ebc

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

js/dynamic.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const loadPage = function () {
2-
let wsite = document.getElementById("searchbox").value;
3-
document.getElementById("view").src = wsite;
4-
};
5-
document.getElementById("load").addEventListener("click", loadPage);
6-
document.getElementById("searchbox").addEventListener("enter", loadPage);
2+
let wsite = document.getElementById("searchbox").value
3+
document.getElementById("view").src = wsite
4+
}
5+
document.getElementById("load").addEventListener("click", loadPage)
6+
document.getElementById("searchbox").addEventListener("enter", loadPage)

js/searchbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* exported redirect */
22
function redirect() {
3-
const wsite = document.getElementById("searchbox").value;
4-
window.location.href = wsite;
3+
const wsite = document.getElementById("searchbox").value
4+
window.location.href = wsite
55
}
66

77
function gotoWebLoader() {
8-
window.location.href = "webload.html";
8+
window.location.href = "webload.html"
99
}

main/main.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Modules to control application life and create native browser window
2-
const { app, BrowserWindow } = require("electron");
3-
const path = require("path");
2+
const { app, BrowserWindow } = require("electron")
3+
const path = require("path")
44
// const displays = require("displays")();
55
function createWindow() {
66
// Create the browser window.
@@ -20,10 +20,10 @@ function createWindow() {
2020
preload: path.join(__dirname, "preload.js"),
2121
webviewTag: true,
2222
},
23-
});
23+
})
2424

2525
// and load the index.html of the app.
26-
mainWindow.loadFile("./index.html");
26+
mainWindow.loadFile("./index.html")
2727

2828
// Open the DevTools.
2929
// mainWindow.webContents.openDevTools()
@@ -33,21 +33,21 @@ function createWindow() {
3333
// initialization and is ready to create browser windows.
3434
// Some APIs can only be used after this event occurs.
3535
app.whenReady().then(() => {
36-
createWindow();
36+
createWindow()
3737

3838
app.on("activate", function () {
3939
// On macOS it's common to re-create a window in the app when the
4040
// dock icon is clicked and there are no other windows open.
41-
if (BrowserWindow.getAllWindows().length === 0) createWindow();
42-
});
43-
});
41+
if (BrowserWindow.getAllWindows().length === 0) createWindow()
42+
})
43+
})
4444

4545
// Quit when all windows are closed, except on macOS. There, it's common
4646
// for applications and their menu bar to stay active until the user quits
4747
// explicitly with Cmd + Q.
4848
app.on("window-all-closed", function () {
49-
if (process.platform !== "darwin") app.quit();
50-
});
49+
if (process.platform !== "darwin") app.quit()
50+
})
5151

5252
// In this file you can include the rest of your app's specific main process
5353
// code. You can also put them in separate files and require them here.

main/preload.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// It has the same sandbox as a Chrome extension.
33
window.addEventListener("DOMContentLoaded", () => {
44
const replaceText = (selector, text) => {
5-
const element = document.getElementById(selector);
6-
if (element) element.innerText = text;
7-
};
5+
const element = document.getElementById(selector)
6+
if (element) element.innerText = text
7+
}
88

99
for (const type of ["chrome", "node", "electron"]) {
10-
replaceText(`${type}-version`, process.versions[type]);
10+
replaceText(`${type}-version`, process.versions[type])
1111
}
12-
});
12+
})

0 commit comments

Comments
 (0)