A few typos + function cleanup #26
Mergeddonavon(GitHub profile, opens in a new tab)merged 4 commits into
master fromrefs/pull/26/headmerged by tannerlinsley View on GitHubtannerlinsley reviewed
@@ -727,11 +727,6 @@727727 }728728729729 function isDocumentVisible() {730- if (typeof document.visibilityState !== 'undefined') {731- return (732- document.visibilityState === 'visible' ||733- document.visibilityState === 'prerender'734- )735- }736-737- return true730+ return document.visibilityState === undefined731+ || document.visibilityState === 'visible'732+ || document.visibilityState === 'prerender'tannerlinsley reviewed
@@ -729,17 +729,8 @@729729 function isDocumentVisible() {730- if (typeof document.visibilityState !== 'undefined') {731- return (732- document.visibilityState === 'visible' ||733- document.visibilityState === 'prerender'734- )735- }736-737- return true730+ return document.visibilityState === undefined731+ || document.visibilityState === 'visible'732+ || document.visibilityState === 'prerender'738733 }739734740735 function isOnline() {741- if (typeof navigator.onLine !== 'undefined') {742- return navigator.onLine743- }744-745- return true736+ return navigator.onLine === undefined || navigator.onLinetannerlinsley merged thiscbe295a
tannerlinsley closed this
Sign in to join this conversation.
This pull request is being automatically deployed with ZEIT Now (learn more). To see the status of your deployment, click below or on the icon next to each commit.