Skip to content

Commit

Permalink
Expanded coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Kandelaars authored and Ben Kandelaars committed Sep 21, 2021
1 parent d97f85e commit 6e1d88c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ function closest (element, selector) {
if (window.Element.prototype.closest) {
return window.Element.prototype.closest.call(element, selector)
} else {
const matches = window.Element.prototype.matches ||
const matches =
window.Element.prototype.matches ||
window.Element.prototype.msMatchesSelector ||
window.Element.prototype.webkitMatchesSelector

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@qubit/utils",
"version": "1.6.0",
"description": "Utilities for clientside code injection",
"main": "dom/index.js",
"main": "index.js",
"scripts": {
"test": "karma start --single-run",
"coverage": "npm test -- --coverage",
Expand Down

0 comments on commit 6e1d88c

Please sign in to comment.