Disable the validation badge for those who do not want it (#5994)
* disabled on string values: "127.0.0.1", "localhost", "none"
This commit is contained in:
@@ -800,6 +800,15 @@ export function sanitizeUrl(url) {
|
||||
return braintreeSanitizeUrl(url)
|
||||
}
|
||||
|
||||
|
||||
export function requiresValidationURL(uri) {
|
||||
if (!uri || uri.indexOf("localhost") >= 0 || uri.indexOf("127.0.0.1") >= 0 || uri === "none") {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
export function getAcceptControllingResponse(responses) {
|
||||
if(!Im.OrderedMap.isOrderedMap(responses)) {
|
||||
// wrong type!
|
||||
|
||||
Reference in New Issue
Block a user