mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 18:31:17 +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);
|
||||
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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue