diff options
| author | mrmr1993 | 2017-02-08 19:47:58 +0000 | 
|---|---|---|
| committer | mrmr1993 | 2017-02-09 18:33:30 +0000 | 
| commit | 97586506fb861c9ca0af1e7fd4941ed0ec5b1b9b (patch) | |
| tree | 4f462e37944285c1d70061b84836f15203a37875 | |
| parent | e053530dc82cdf202c67483d9148d006daab7979 (diff) | |
| download | vimium-97586506fb861c9ca0af1e7fd4941ed0ec5b1b9b.tar.bz2 | |
Guard against undefined (out of spec) getDestinationInsertionPoints
| -rw-r--r-- | lib/dom_utils.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index fad5ffbf..500332e0 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -342,7 +342,7 @@ DomUtils =    # If the element is rendered in a shadow DOM via a <content> element, the <content> element will be    # returned, so the shadow DOM is traversed rather than passed over.    getContainingElement: (element) -> -    element.getDestinationInsertionPoints()[0] or element.parentElement +    element.getDestinationInsertionPoints?()[0] or element.parentElement    # This tests whether a window is too small to be useful.    windowIsTooSmall: -> | 
