mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-29 09:20:26 +01:00
Protocol logic and lint fixes.
This commit is contained in:
parent
566201fb45
commit
f39fb34f36
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue