Commit 5c3cdd5f authored by Robert Knight's avatar Robert Knight

Ignore coverage for edge-case early exit

This is only relevant in the edge case that `document.documentElement` is null.
parent b3e062dc
......@@ -103,6 +103,7 @@ export function installShortcut(
onPress(event);
}
};
/* istanbul ignore next */
if (!rootElement) {
return () => {};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment