mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-21 08:06:27 -04:00
Merge branch 'ARI-5643' into qa
This commit is contained in:
commit
8609271e8c
@ -237,4 +237,4 @@
|
||||
behavior_js_template: umbraBehavior.js.j2
|
||||
default_parameters:
|
||||
actions:
|
||||
- selector: button.sc-button-play, .playButton, div.soundItem, .jwlist>a
|
||||
- selector: button.sc-button-play, .playButton, div.soundItem, .jwlist>a, button.js-display-this-media
|
||||
|
@ -124,11 +124,7 @@ class UmbraBehavior {
|
||||
}
|
||||
|
||||
isVisible(elem) {
|
||||
if (elem) {
|
||||
return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return elem && !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
|
||||
}
|
||||
|
||||
doTarget(target, action) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user