chore(deps): update dependency prettier to v1.19.1 (#2893)

* chore(deps): update dependency prettier to v1.19.1

* style: format files after prettier upgrade
This commit is contained in:
Erez Rokah
2019-11-18 17:51:51 +02:00
committed by GitHub
parent e00aab2a8b
commit ead46af194
17 changed files with 80 additions and 81 deletions

View File

@ -30,7 +30,8 @@ export default class ImplicitAuthenticator {
document.location.protocol !== 'https:' &&
// TODO: Is insecure localhost a bad idea as well? I don't think it is, since you are not actually
// sending the token over the internet in this case, assuming the auth URL is secure.
(document.location.hostname !== 'localhost' && document.location.hostname !== '127.0.0.1')
document.location.hostname !== 'localhost' &&
document.location.hostname !== '127.0.0.1'
) {
return cb(new Error('Cannot authenticate over insecure protocol!'));
}