Fix default protocol validation list

This commit is contained in:
Gabe Kangas
2022-12-14 23:33:32 -08:00
parent 5951ce527b
commit 7d2e2537cf
2 changed files with 3 additions and 12 deletions

View File

@@ -69,16 +69,7 @@ const ActionModal = (props: Props) => {
}
function canSave(): Boolean {
try {
const validationObject = new URL(actionUrl);
if (validationObject.protocol !== 'https:') {
return false;
}
} catch {
return false;
}
return isValidUrl(actionUrl) && actionTitle !== '';
return isValidUrl(actionUrl, ['https:']) && actionTitle !== '';
}
const okButtonProps = {