Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun committed Feb 18, 2020
1 parent a5831c5 commit 7b98f04
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/docusaurus/src/client/exports/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ function Link(props) {
const isInternal = isInternalUrl(targetLink);
const preloaded = useRef(false);

const IOSupported =
ExecutionEnvironment.canUseDOM &&
ExecutionEnvironment.canUseIntersectionObserver;
const IOSupported = ExecutionEnvironment.canUseIntersectionObserver;

let io;
const handleIntersection = (el, cb) => {
Expand Down

0 comments on commit 7b98f04

Please sign in to comment.