mirror of
https://github.com/Dasemu/X-GeoBlock.git
synced 2026-11-26 23:36:11 +00:00
feat: add location picker and persistent cache
This commit is contained in:
1 parent
fcea6cf7b7
commit
3811ae9cfc
16 files changed
+163
-39
No files matched your search
+15
-3
@@ -3,8 +3,7 @@
|
||||
|
||||
const DEFAULT_SETTINGS = Object.freeze({
|
||||
enabled: true,
|
||||
blacklist: ["Belarus", "China", "Iran", "North Korea", "Russia"],
|
||||
cacheTtlHours: 168,
|
||||
blacklist: [],
|
||||
showPlaceholder: false
|
||||
});
|
||||
|
||||
@@ -16,8 +15,21 @@
|
||||
"dprk": "north korea",
|
||||
"republic of korea": "south korea",
|
||||
"united states of america": "united states",
|
||||
"u.s.": "united states",
|
||||
"usa": "united states",
|
||||
"uk": "united kingdom"
|
||||
"uk": "united kingdom",
|
||||
"viet nam": "vietnam",
|
||||
"bolivia, plurinational state of": "bolivia",
|
||||
"venezuela, bolivarian republic of": "venezuela",
|
||||
"tanzania, united republic of": "tanzania",
|
||||
"syrian arab republic": "syria",
|
||||
"lao people's democratic republic": "laos",
|
||||
"moldova, republic of": "moldova",
|
||||
"brunei darussalam": "brunei",
|
||||
"czechia": "czech republic",
|
||||
"turkiye": "turkey",
|
||||
"cote d’ivoire": "ivory coast",
|
||||
"cote d'ivoire": "ivory coast"
|
||||
});
|
||||
|
||||
function normalizeCountry(value) {
|
||||
|
||||
Reference in new issue
Block a user