FIX: avoid redirect at watabou

This commit is contained in:
Mészáros Gergely 2022-05-07 18:43:47 +02:00
parent bd21aa6d8e
commit f53d5810d5

View file

@ -320,7 +320,7 @@ function getMFCGlink(burg) {
} }
const parameters = {name, population, size, seed, river, coast, farms, citadel, urban_castle, hub, plaza, temple, walls, shantytown, gates: -1}; const parameters = {name, population, size, seed, river, coast, farms, citadel, urban_castle, hub, plaza, temple, walls, shantytown, gates: -1};
const url = new URL("https://watabou.github.io/city-generator"); const url = new URL("https://watabou.github.io/city-generator/");
url.search = new URLSearchParams(parameters); url.search = new URLSearchParams(parameters);
if (sea) url.searchParams.append("sea", sea); if (sea) url.searchParams.append("sea", sea);