fix: removal of url shortener

pull/105/head
sualko 2020-11-24 11:14:00 +01:00
parent 40271e2b9c
commit 0cfb7d155d
1 changed files with 2 additions and 2 deletions

View File

@ -79,11 +79,11 @@ $(() => {
async function saveAppSettings(shortener: string) { async function saveAppSettings(shortener: string) {
await checkPasswordConfirmation(); await checkPasswordConfirmation();
if (shortener.indexOf('https://') !== 0) { if (shortener && shortener.indexOf('https://') !== 0) {
throw 'https'; throw 'https';
} }
if (shortener.indexOf('{token}') < 0) { if (shortener && shortener.indexOf('{token}') < 0) {
throw 'token'; throw 'token';
} }