From df1c6030999163fddfee215f6c37a7a3d8fe742d Mon Sep 17 00:00:00 2001 From: Claus Wahlers Date: Mon, 16 Apr 2018 12:54:25 -0300 Subject: [PATCH] Add missing `typeof` --- src/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link.js b/src/link.js index 60e0d5a..2375683 100644 --- a/src/link.js +++ b/src/link.js @@ -9,7 +9,7 @@ export default class DataPrefetchLink extends Link { } const { pathname } = window.location; - const hrefString = this.props.href !== 'string' ? format(this.props.href) : this.props.href; + const hrefString = typeof this.props.href !== 'string' ? format(this.props.href) : this.props.href; const href = resolve(pathname, hrefString); const { query } = parse(href, true);