This commit is contained in:
Core 2022-01-16 16:57:37 +00:00
parent 89e867ffab
commit a501a83a96
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
2 changed files with 5 additions and 22 deletions

View file

@ -47,10 +47,10 @@ electron.ipcMain.on('nowPlayingItemDidChange', (event, attributes) => {
}); });
// //
// app.on('before-quit', () => { electron.app.on('before-quit', () => {
// app.isQuiting = true; plug.callPlugins('onBeforeQuit');
// console.warn(`${app.getName()} exited.`); console.warn(`${electron.app.getName()} exited.`);
// }); });
// //
// // Widevine Stuff // // Widevine Stuff
// app.on('widevine-ready', (version, lastVersion) => { // app.on('widevine-ready', (version, lastVersion) => {
@ -70,23 +70,6 @@ electron.ipcMain.on('nowPlayingItemDidChange', (event, attributes) => {
// app.exit() // app.exit()
// }) // })
// //
// if (process.defaultApp) {
// if (process.argv.length >= 2) {
// app.setAsDefaultProtocolClient('cider', process.execPath, [resolve(process.argv[1])])
// app.setAsDefaultProtocolClient('ame', process.execPath, [resolve(process.argv[1])])
// app.setAsDefaultProtocolClient('itms', process.execPath, [resolve(process.argv[1])])
// app.setAsDefaultProtocolClient('itmss', process.execPath, [resolve(process.argv[1])])
// app.setAsDefaultProtocolClient('musics', process.execPath, [resolve(process.argv[1])])
// app.setAsDefaultProtocolClient('music', process.execPath, [resolve(process.argv[1])])
// }
// } else {
// app.setAsDefaultProtocolClient('cider') // Custom AME Protocol
// app.setAsDefaultProtocolClient('ame') // Custom AME Protocol
// app.setAsDefaultProtocolClient('itms') // iTunes HTTP Protocol
// app.setAsDefaultProtocolClient('itmss') // iTunes HTTPS Protocol
// app.setAsDefaultProtocolClient('musics') // macOS Client Protocol
// app.setAsDefaultProtocolClient('music') // macOS Client Protocol
// }
// //
// app.on('open-url', (event, url) => { // app.on('open-url', (event, url) => {
// event.preventDefault() // event.preventDefault()

View file

@ -26,7 +26,7 @@ export default class ExamplePlugin {
/** /**
* Runs on app stop * Runs on app stop
*/ */
onStop(): void { onBeforeQuit(): void {
console.log('Example plugin stopped'); console.log('Example plugin stopped');
} }