mirror of
https://github.com/maputnik/editor.git
synced 2026-08-26 06:57:26 +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);
|
const protocol = getProtocol(url);
|
||||||
if (
|
if (
|
||||||
protocol &&
|
protocol &&
|
||||||
protocol === "https:" &&
|
protocol === "http:" &&
|
||||||
window.location.protocol !== "http:"
|
window.location.protocol === "https:"
|
||||||
) {
|
) {
|
||||||
error = (
|
error = (
|
||||||
<SmallError>
|
<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>
|
</SmallError>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user