sorry for doing this.

This commit is contained in:
cryptofyre 2021-12-04 00:04:04 -06:00
parent 5fc82a8bc7
commit b3db294485
106 changed files with 86 additions and 259 deletions

View file

@ -1,19 +0,0 @@
try {
const preferences = ipcRenderer.sendSync('getStore');
if (MusicKit.getInstance().isAuthorized) {
let url = window.location.href;
if (preferences.general.startupPage !== "browse") {
if (preferences.general.startupPage.includes('library/')) {
url = `${window.location.origin}/${preferences.general.startupPage}`;
} else {
url = `${window.location.origin}/${MusicKit.getInstance().storefrontId}/${preferences.general.startupPage}`;
}
window.location.href = url;
}
ipcRenderer.send('userAuthorized', url);
}
} catch (e) {
console.error("[JS] Error while trying to apply CheckAuth.js", e);
}