fix: move hash to front of identifier
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
f786989600
commit
fd2ffacb7c
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ function start(opts) {
|
||||||
StyleSourceId;
|
StyleSourceId;
|
||||||
if (isValidHttpUrl(StyleSourceId)) {
|
if (isValidHttpUrl(StyleSourceId)) {
|
||||||
id =
|
id =
|
||||||
id.replace(/^.*\/(.*)$/, '$1') + '_' + fnv1a(StyleSourceId);
|
fnv1a(StyleSourceId) + '_' + id.replace(/^.*\/(.*)$/, '$1');
|
||||||
}
|
}
|
||||||
while (data[id]) id += '_'; //if the data source id already exists, add a "_" untill it doesn't
|
while (data[id]) id += '_'; //if the data source id already exists, add a "_" untill it doesn't
|
||||||
//Add the new data source to the data array.
|
//Add the new data source to the data array.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue