aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
authorStephen Blott2017-02-11 07:27:55 +0000
committerGitHub2017-02-11 07:27:55 +0000
commit771b0abc9d60a31d29cb59de6edfe529a5e3005c (patch)
tree4f462e37944285c1d70061b84836f15203a37875 /lib/dom_utils.coffee
parentb12ed93d0b96df90511d3331e8a5f54e7b1b7da4 (diff)
parent97586506fb861c9ca0af1e7fd4941ed0ec5b1b9b (diff)
downloadvimium-771b0abc9d60a31d29cb59de6edfe529a5e3005c.tar.bz2
Merge pull request #2426 from mrmr1993/no-depreciated-apis
Replace depreciated APIs
Diffstat (limited to 'lib/dom_utils.coffee')
-rw-r--r--lib/dom_utils.coffee2
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: ->