From 24148c709806d1631f35cd8efd3fdec4f2376f92 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Sun, 29 Oct 2017 12:51:53 +0000 Subject: Guard against undefined DomUtils, instead of stubbing in tests --- content_scripts/mode_normal.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/mode_normal.coffee b/content_scripts/mode_normal.coffee index 8dad4b63..ee05f4b0 100644 --- a/content_scripts/mode_normal.coffee +++ b/content_scripts/mode_normal.coffee @@ -214,7 +214,7 @@ textInputXPath = (-> "(" + textInputTypes.map((type) -> '@type="' + type + '"').join(" or ") + "or not(@type))" + " and not(@disabled or @readonly)]", "textarea", "*[@contenteditable='' or translate(@contenteditable, 'TRUE', 'true')='true']"] - DomUtils.makeXPath(inputElements) + DomUtils?.makeXPath(inputElements) )() # used by the findAndFollow* functions. -- cgit v1.2.3