mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-28 10:51:45 +02:00
Fetch wmf-sitematrix from CDN.. No need to depend on it anymore.
This commit is contained in:
@@ -21,7 +21,7 @@ export function coreData(context) {
|
||||
'phone_formats': 'data/phone_formats.min.json',
|
||||
'shortcuts': 'data/shortcuts.min.json',
|
||||
'territory_languages': 'data/territory_languages.min.json',
|
||||
'wikipedia': 'data/wikipedia.min.json'
|
||||
'wmf_sitematrix': 'https://cdn.jsdelivr.net/npm/wmf-sitematrix@0.1/wikipedia.min.json'
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export function uiFieldWikipedia(field, context) {
|
||||
// be available the first time through, so things like the fetchers and
|
||||
// the language() function will not work immediately.
|
||||
let _dataWikipedia = [];
|
||||
context.data().get('wikipedia')
|
||||
context.data().get('wmf_sitematrix')
|
||||
.then(d => _dataWikipedia = d)
|
||||
.catch(() => { /* ignore */ });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user