fix: download PDF & MP3 & MIDI

This commit is contained in:
Xmader 2020-11-11 22:47:35 -05:00
parent 5b4cb76f59
commit 81fd45e6b4
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 0 additions and 10 deletions

View File

@ -9,11 +9,6 @@ const MAGIC_ARG_INDEX = 3
type FileType = 'img' | 'mp3' | 'midi'
const getApiUrl = (id: number, type: FileType, index: number): string => {
// proxy
return `https://musescore.now.sh/api/jmuse?id=${id}&type=${type}&index=${index}`
}
/**
* I know this is super hacky.
*/
@ -39,11 +34,6 @@ export const getFileUrl = async (type: FileType, index = 0): Promise<string> =>
return type
})
},
'VSrV' (_, r, t) { // override
t.d(r, 'b', () => {
return getApiUrl
})
},
})
const fn: (id: number, index: number, cb: (url: string) => any, magic: string) => string = fileUrlModule.a