mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 01:48:13 +01:00
Throw on bad server url
// FREEBIE
This commit is contained in:
@@ -38790,6 +38790,9 @@ var TextSecureServer = (function() {
|
||||
var attachment_id_regex = RegExp( "^https:\/\/.*\/(\\d+)\?");
|
||||
|
||||
function TextSecureServer(url, username, password) {
|
||||
if (typeof url !== 'string') {
|
||||
throw new Error('Invalid server url');
|
||||
}
|
||||
this.url = url;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
|
||||
Reference in New Issue
Block a user