From 4b7cc3562e37d70ff72a8157c82698e0910a4181 Mon Sep 17 00:00:00 2001 From: Xmader Date: Thu, 29 Oct 2020 03:33:45 -0400 Subject: [PATCH] fix: auth magic The page contains extra buttons if the viewport is not large enough --- src/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.ts b/src/file.ts index 81794e8..ecb7dd7 100644 --- a/src/file.ts +++ b/src/file.ts @@ -53,7 +53,7 @@ export const getFileUrl = async (type: FileType, index = 0): Promise => 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 }