mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
linting
This commit is contained in:
parent
651f197dd2
commit
003cbb1abd
2 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ function doAfterDefiningTheWindow(passedWindow: BrowserWindow): void {
|
|||
passedWindow.webContents.userAgent =
|
||||
"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.149 Mobile Safari/537.36";
|
||||
} else {
|
||||
var osType = process.platform === "darwin" ? "Macintosh" : process.platform === "win32" ? "Windows" : "Linux";
|
||||
let osType = process.platform === "darwin" ? "Macintosh" : process.platform === "win32" ? "Windows" : "Linux";
|
||||
if (osType === "Linux") osType = "X11; " + osType;
|
||||
const chromeVersion = process.versions.chrome;
|
||||
const userAgent = `Mozilla/5.0 (${osType} ${os.arch()}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${chromeVersion} Safari/537.36`;
|
||||
|
|
|
@ -31,7 +31,7 @@ app.on("render-process-gone", (_event, _webContents, details) => {
|
|||
app.relaunch();
|
||||
}
|
||||
});
|
||||
async function args(): Promise<void> {
|
||||
function args(): void {
|
||||
let argNum = 2;
|
||||
if (process.argv[0] == "electron") argNum++;
|
||||
const args = process.argv[argNum];
|
||||
|
@ -74,7 +74,7 @@ export async function init(): Promise<void> {
|
|||
break;
|
||||
}
|
||||
}
|
||||
await args(); // i want my top level awaits - IMPLEMENTED :)
|
||||
args();
|
||||
if (!app.requestSingleInstanceLock()) {
|
||||
// if value isn't set after 3.2.4
|
||||
// kill if 2nd instance
|
||||
|
|
Loading…
Reference in a new issue