Move the httpToGeoUri util into core
This commit is contained in:
parent
3129dd9351
commit
3bfd60a3df
@ -528,6 +528,11 @@ u.getUniqueId = function (suffix) {
|
||||
}
|
||||
}
|
||||
|
||||
u.httpToGeoUri = function(text, _converse) {
|
||||
const replacement = 'geo:$1,$2';
|
||||
return text.replace(_converse.api.settings.get("geouri_regex"), replacement);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the specified timeout and interval.
|
||||
|
@ -356,11 +356,6 @@ u.filterQueryParamsFromURL = function (url) {
|
||||
return parsed_uri.removeQuery(paramsArray).toString();
|
||||
};
|
||||
|
||||
u.httpToGeoUri = function(text, _converse) {
|
||||
const replacement = 'geo:$1,$2';
|
||||
return text.replace(_converse.api.settings.get("geouri_regex"), replacement);
|
||||
};
|
||||
|
||||
u.slideInAllElements = function (elements, duration=300) {
|
||||
return Promise.all(Array.from(elements).map(e => u.slideIn(e, duration)));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user