mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-20 04:44:12 -04:00
Merge pull request #46 from nlevitt/facebook-modal-close
update detection of modal close button for facebook changes
This commit is contained in:
commit
b329d193ca
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ var umbraIntervalFunc = function() {
|
||||||
return;
|
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++) {
|
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
|
// 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) {
|
if (closeButtons[i].clientWidth > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue