Who tf done this

This commit is contained in:
Core 2022-03-10 17:30:57 +00:00
parent ed8e977786
commit ba6f89362d
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
9 changed files with 44 additions and 37 deletions

View file

@ -207,10 +207,10 @@ export default class LastFMPlugin {
/**
* Runs on plugin load (Currently run on application start)
*/
constructor(app: any, store: any) {
this._app = app;
this._store = store
electron.app.on('second-instance', (_e: any, argv: any) => {
constructor(utils: { getApp: () => any; getStore: () => any; }) {
this._app = utils.getApp();
this._store = utils.getStore()
utils.getApp().on('second-instance', (_e: any, argv: any) => {
// Checks if first instance is authorized and if second instance has protocol args
argv.forEach((value: any) => {
if (value.includes('auth')) {