1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-22 17:52:30 +01:00
This commit is contained in:
Philipp Heckel 2022-10-09 08:50:28 -04:00
parent cb8b3e54f6
commit 1b82beea6e

View file

@ -92,7 +92,7 @@ const SubscribePage = (props) => {
})();
const updateBaseUrl = (ev, newVal) => {
if (validUrl(newVal)) {
props.setBaseUrl(newVal.replace(/\/$/, '')); // strip traililng / after https?://
props.setBaseUrl(newVal.replace(/\/$/, '')); // strip trailing slash after https?://
} else {
props.setBaseUrl(newVal);
}