fix: auth magic

The page contains extra buttons if the viewport is not large enough
This commit is contained in:
Xmader 2020-10-29 03:33:45 -04:00
parent 54145a753a
commit 4b7cc3562e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export const getFileUrl = async (type: FileType, index = 0): Promise<string> =>
if (typeof magic !== 'string') {
// force to retrieve the MAGIC
const el = document.querySelectorAll('._13vRI')[6] as HTMLButtonElement
const el = document.querySelectorAll('.SD7H- > button')[3] as HTMLButtonElement
el.click()
magic = await magic
}