diff --git a/chrome_extension/src/scripts/google_photos_content.ts b/chrome_extension/src/scripts/google_photos_content.ts index 3e978dd..83c401d 100644 --- a/chrome_extension/src/scripts/google_photos_content.ts +++ b/chrome_extension/src/scripts/google_photos_content.ts @@ -51,7 +51,7 @@ function handleDeletePhoto( } try { - const confirmButton = await waitForElement("[jsshadow] [autofocus]"); + const confirmButton = await waitForElement("[data-mdc-dialog-button-default]"); confirmButton.click(); } catch (error) { chrome.runtime.sendMessage({