Skip to content

Commit

Permalink
Neil/small things (#307)
Browse files Browse the repository at this point in the history
* removed notifications prompt

* Update dependencies related to slack oauth
  • Loading branch information
DumboOctopus authored Dec 6, 2019
1 parent c358107 commit aaaad40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions meow/frontend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ import { store, persistor } from "./store";
import "./index.css";
import App from "./components/App";

try {
Notification.requestPermission().then(permission => {
if (permission === "denied") {
// eslint-disable-next-line no-alert
alert("Notifications have been disabled");
}
});
} catch (error) {
// Safari doesn't return a promise for requestPermissions and it
// throws a TypeError. It takes a callback as the first argument
// instead.
console.log("This browser does not support Notifications");
}
// try {
// Notification.requestPermission().then(permission => {
// if (permission === "denied") {
// // eslint-disable-next-line no-alert
// alert("Notifications have been disabled");
// }
// });
// } catch (error) {
// // Safari doesn't return a promise for requestPermissions and it
// // throws a TypeError. It takes a callback as the first argument
// // instead.
// console.log("This browser does not support Notifications");
// }

ReactDOM.render(
<Provider store={store}>
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ requests-oauthlib==0.8.0
singledispatch==3.4.0.3
six==1.10.0
social-auth-app-django==3.1.0
social-auth-core==1.7.0
social-auth-core==3.2.0
tweepy==3.5.0
urllib3==1.24.2
vine==1.1.4
Expand Down

0 comments on commit aaaad40

Please sign in to comment.