We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6ffe23 + 15e0494 commit b2f073eCopy full SHA for b2f073e
components/vote/app.jsx
@@ -1,4 +1,5 @@
1
import React from 'react';
2
+import 'whatwg-fetch';
3
import SidebarItem from '../sidebar-item/sidebar-item';
4
import * as api from "./api";
5
import './app-style';
@@ -26,7 +27,7 @@ export default class VoteApp extends React.Component {
26
27
}
28
29
isBrowserSupported() {
- return typeof localStorage === 'object' && typeof fetch === 'function';
30
+ return typeof localStorage === 'object';
31
32
33
componentDidMount() {
package.json
@@ -97,6 +97,7 @@
97
"preact-compat": "^3.6.0",
98
"react": "^15.3.2",
99
"react-dom": "^15.3.2",
100
- "react-router": "^2.8.1"
+ "react-router": "^2.8.1",
101
+ "whatwg-fetch": "^2.0.1"
102
103
0 commit comments