mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-26 03:00:57 -04:00
update detection of modal close button for facebook changes
This commit is contained in:
parent
85d87a5e42
commit
8889707f24
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ var umbraIntervalFunc = function() {
|
|||
return;
|
||||
}
|
||||
|
||||
var closeButtons = document.querySelectorAll('a[title="Close"], a.closeTheater');
|
||||
var closeButtons = document.querySelectorAll('a[title="Close"], a.closeTheater, a[aria-label="Press Esc to close"]');
|
||||
for (var i = 0; i < closeButtons.length; i++) {
|
||||
// XXX closeTheater buttons stick around in the dom after closing, clientWidth>0 is one way to check if they're visible
|
||||
if (closeButtons[i].clientWidth > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue