mirror of
https://github.com/maputnik/editor.git
synced 2026-01-03 03:50:00 +00:00
Protocol logic and lint fixes.
This commit is contained in:
@@ -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 = (
|
||||
<SmallError>
|
||||
CORs policy won't allow fetching resources served over http from https, use a <code>https://</code> domain
|
||||
CORs policy won't allow fetching resources served over http from https, use a <code>https://</code> domain
|
||||
</SmallError>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user