Make urls const
This commit is contained in:
parent
232d1e5b30
commit
2a0c333b9d
@ -1,12 +1,12 @@
|
||||
const urls = [
|
||||
"*://*.tile.openstreetmap.org/*"
|
||||
]
|
||||
|
||||
function replaceTileserver(request) {
|
||||
var url = request.url.replace("tile.openstreetmap.org", "tiles.demostat.de");
|
||||
console.log("custom-openstreetmap-tile-server: " + request.url + " -> " + url);
|
||||
return {redirectUrl: url};
|
||||
}
|
||||
|
||||
urls = [
|
||||
"*://*.tile.openstreetmap.org/*"
|
||||
]
|
||||
|
||||
|
||||
chrome.webRequest.onBeforeRequest.addListener(replaceTileserver, {urls: urls}, ["blocking"]);
|
||||
|
Loading…
Reference in New Issue
Block a user