Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Oct 9, 2019
1 parent 00ba786 commit 948b404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src.ts/utils/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export interface ConnectionInfo {
headers?: { [key: string]: string | number };
}


// TODO: Move into separate module and exclude node-fetch kludge from browser build
let fetch;
if (typeof window === 'undefined' || window.name === 'nodejs') {
const nodeFetch = require('node-fetch');
Expand Down

0 comments on commit 948b404

Please sign in to comment.