Add log function
This commit is contained in:
parent
2a0c333b9d
commit
d72e904a20
@ -2,9 +2,13 @@ const urls = [
|
||||
"*://*.tile.openstreetmap.org/*"
|
||||
]
|
||||
|
||||
function log(msg) {
|
||||
console.log("custom-openstreetmap-tile-server: " + msg)
|
||||
}
|
||||
function replaceTileserver(request) {
|
||||
var url = request.url.replace("tile.openstreetmap.org", "tiles.demostat.de");
|
||||
console.log("custom-openstreetmap-tile-server: " + request.url + " -> " + url);
|
||||
log(request.url + " -> " + url);
|
||||
return {redirectUrl: url};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user