prepareOriginURL added. see #524
This commit is contained in:
parent
ccdfb39f43
commit
29bdd248b1
1 changed files with 4 additions and 0 deletions
|
|
@ -499,6 +499,10 @@ export function normalizeStringList(list, returnType = 0) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function prepareOriginURL(url) {
|
||||||
|
return url.endsWith('/') ? `${url}*` : `${url}/*`;
|
||||||
|
}
|
||||||
|
|
||||||
function generateHexColorForTag() {
|
function generateHexColorForTag() {
|
||||||
const red = Math.floor(Math.random() * 256);
|
const red = Math.floor(Math.random() * 256);
|
||||||
const green = Math.floor(Math.random() * 256);
|
const green = Math.floor(Math.random() * 256);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue