Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #61 from tlwr/gh-pages
Browse files Browse the repository at this point in the history
BAU: Correct isUnsafe logic
  • Loading branch information
tlwr committed Feb 20, 2018
2 parents ee9f58e + a211349 commit 3cb5e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/preflight.js
@@ -1,7 +1,7 @@
function runPreFlightChecks() {
const isHttp = window.location.protocol == 'http:',
isLocalhost = window.location.hostname == 'localhost'
isUnsafe = !isHttp || !(isHttp && isLocalhost);
isUnsafe = isHttp && !isLocalhost;

if (isUnsafe) {
const isHttpMessage = [
Expand Down

0 comments on commit 3cb5e96

Please sign in to comment.