config: disable overpass proxy probe by default

This commit is contained in:
Richard Zink committed 2026-10-13 11:12:46 +02:00
1 parent c0c612c0cc
commit 5ce027fd5d
2 files changed
+9

No files matched your search

+8
View File
@@ -62,6 +62,14 @@ window.CONFIG = {
debug: 0, // 1 = debug panel + progress logs in the console
// debug: 1
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
units: { temperature: 'C' }, // 'F' for Fahrenheit
// units: { temperature: 'F' }
+1
View File
@@ -3199,6 +3199,7 @@ function opProbeProxy() {
if (_opProxyChecked) return;
_opProxyChecked = true;
if (location.protocol === 'file:') return;
if (!(window.CONFIG && window.CONFIG.overpass && window.CONFIG.overpass.useProxy)) return;
fetch(OP_PROXY[0], {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },