mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
Urls back to jsdelivr, but make sure to request files from master
(closes #6908)
This commit is contained in:
+7
-7
@@ -437,7 +437,7 @@ function generateTaginfo(presets, fields) {
|
||||
'description': 'Online editor for OSM data.',
|
||||
'project_url': 'https://github.com/openstreetmap/iD',
|
||||
'doc_url': 'https://github.com/openstreetmap/iD/blob/master/data/presets/README.md',
|
||||
'icon_url': 'https://raw.githubusercontent.com/openstreetmap/iD/release/dist/img/logo.png',
|
||||
'icon_url': 'https://cdn.jsdelivr.net/gh/openstreetmap/iD@release/dist/img/logo.png',
|
||||
'keywords': ['editor']
|
||||
},
|
||||
'tags': []
|
||||
@@ -472,14 +472,14 @@ function generateTaginfo(presets, fields) {
|
||||
tag.icon_url = 'https://cdn.jsdelivr.net/gh/bhousel/temaki/icons/' +
|
||||
preset.icon.replace(/^temaki-/, '') + '.svg';
|
||||
} else if (/^fa[srb]-/.test(preset.icon)) {
|
||||
tag.icon_url = 'https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/' +
|
||||
preset.icon + '.svg?sanitize=true';
|
||||
tag.icon_url = 'https://cdn.jsdelivr.net/gh/openstreetmap/iD@master/svg/fontawesome/' +
|
||||
preset.icon + '.svg';
|
||||
} else if (/^iD-/.test(preset.icon)) {
|
||||
tag.icon_url = 'https://raw.githubusercontent.com/openstreetmap/iD/master/svg/iD-sprite/presets/' +
|
||||
preset.icon.replace(/^iD-/, '') + '.svg?sanitize=true';
|
||||
tag.icon_url = 'https://cdn.jsdelivr.net/gh/openstreetmap/iD@master/svg/iD-sprite/presets/' +
|
||||
preset.icon.replace(/^iD-/, '') + '.svg';
|
||||
} else if (/^tnp-/.test(preset.icon)) {
|
||||
tag.icon_url = 'https://raw.githubusercontent.com/openstreetmap/iD/master/svg/the-noun-project/' +
|
||||
preset.icon.replace(/^tnp-/, '') + '.svg?sanitize=true';
|
||||
tag.icon_url = 'https://cdn.jsdelivr.net/gh/openstreetmap/iD@master/svg/the-noun-project/' +
|
||||
preset.icon.replace(/^tnp-/, '') + '.svg';
|
||||
}
|
||||
|
||||
coalesceTags(taginfo, tag);
|
||||
|
||||
+253
-253
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user