chore: Prettified Code
[ci skip]
This commit is contained in:
parent
f8e16c546d
commit
dfc75d0bcb
26 changed files with 306 additions and 134 deletions
|
@ -144,7 +144,7 @@ export class AppEvents {
|
|||
title: "Web Remote",
|
||||
description: "Connect to your Web Remote",
|
||||
},
|
||||
"https://webremote.cider.sh"
|
||||
"https://webremote.cider.sh",
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -708,7 +708,7 @@ export class BrowserWindow {
|
|||
cancel: false,
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
BrowserWindow.win.webContents.session.webRequest.onBeforeSendHeaders(async (details: { url: string; requestHeaders: { [x: string]: string } }, callback: (arg0: { requestHeaders: any }) => void) => {
|
||||
|
@ -785,7 +785,7 @@ export class BrowserWindow {
|
|||
"media-user-token": options.mediaToken,
|
||||
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Cider/1.4.2 Chrome/100.0.4896.75 Electron/18.0.3 Safari/537.36",
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
let json = await res.json();
|
||||
return json;
|
||||
|
@ -1350,7 +1350,7 @@ export class BrowserWindow {
|
|||
{
|
||||
ip: `${BrowserWindow.getIP()}`,
|
||||
},
|
||||
`http://${BrowserWindow.getIP()}:${this.remotePort}`
|
||||
`http://${BrowserWindow.getIP()}:${this.remotePort}`,
|
||||
);
|
||||
}
|
||||
// Get previews for normalization
|
||||
|
|
|
@ -167,7 +167,7 @@ export default class ChromecastPlugin {
|
|||
},
|
||||
(err: any, status: any) => {
|
||||
console.log("media loaded playerState=%s", status);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
client.getStatus((x: any, status: any) => {
|
||||
|
|
|
@ -135,7 +135,7 @@ export default class lastfm {
|
|||
attributes.lfmAlbum = data;
|
||||
callback(attributes);
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
} else {
|
||||
this._lfm.track.getCorrection(attributes.primaryArtist, attributes.name, (err: any, data: any) => {
|
||||
|
|
|
@ -133,7 +133,7 @@ export class LocalFiles {
|
|||
dirents.map((dirent: any) => {
|
||||
const res = path.resolve(dir, dirent.name);
|
||||
return dirent.isDirectory() ? this.getFiles(res) : res;
|
||||
})
|
||||
}),
|
||||
);
|
||||
return Array.prototype.concat(...files);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue