config: disable overpass proxy probe by default
This commit is contained in:
1 parent
c0c612c0cc
commit
5ce027fd5d
2 files changed
+9
No files matched your search
@@ -62,6 +62,14 @@ window.CONFIG = {
|
|||||||
debug: 0, // 1 = debug panel + progress logs in the console
|
debug: 0, // 1 = debug panel + progress logs in the console
|
||||||
// debug: 1
|
// debug: 1
|
||||||
credits: false, // attribution line hidden
|
credits: false, // attribution line hidden
|
||||||
|
|
||||||
|
// Optional same-origin Overpass proxy probe. The public Overpass mirrors
|
||||||
|
// work directly from the browser; keep this false unless the background
|
||||||
|
// nginx proxy is known to be reachable and you want cached same-origin calls.
|
||||||
|
overpass: {
|
||||||
|
useProxy: false, // true = probe /overpass/... and use it when available
|
||||||
|
// useProxy: true
|
||||||
|
},
|
||||||
// credits: false
|
// credits: false
|
||||||
units: { temperature: 'C' }, // 'F' for Fahrenheit
|
units: { temperature: 'C' }, // 'F' for Fahrenheit
|
||||||
// units: { temperature: 'F' }
|
// units: { temperature: 'F' }
|
||||||
|
|||||||
Vendored
+1
@@ -3199,6 +3199,7 @@ function opProbeProxy() {
|
|||||||
if (_opProxyChecked) return;
|
if (_opProxyChecked) return;
|
||||||
_opProxyChecked = true;
|
_opProxyChecked = true;
|
||||||
if (location.protocol === 'file:') return;
|
if (location.protocol === 'file:') return;
|
||||||
|
if (!(window.CONFIG && window.CONFIG.overpass && window.CONFIG.overpass.useProxy)) return;
|
||||||
fetch(OP_PROXY[0], {
|
fetch(OP_PROXY[0], {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||||
|
|||||||
Reference in new issue
Block a user