From f39fb34f36449b54cf31302066b114aaa87c1430 Mon Sep 17 00:00:00 2001 From: orangemug Date: Sun, 27 Oct 2019 17:15:17 +0000 Subject: [PATCH] Protocol logic and lint fixes. --- src/components/inputs/UrlInput.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/inputs/UrlInput.jsx b/src/components/inputs/UrlInput.jsx index b729b070..04bb5318 100644 --- a/src/components/inputs/UrlInput.jsx +++ b/src/components/inputs/UrlInput.jsx @@ -32,12 +32,12 @@ class UrlInput extends React.Component { const protocol = getProtocol(url); if ( protocol && - protocol === "https:" && - window.location.protocol !== "http:" + protocol === "http:" && + window.location.protocol === "https:" ) { error = ( - CORs policy won't allow fetching resources served over http from https, use a https:// domain + CORs policy won't allow fetching resources served over http from https, use a https:// domain ); }