Show invalid url error on UI, add test case

This commit is contained in:
rejas
2021-03-16 13:47:48 +01:00
parent 2ec275957f
commit a269b5cd93
6 changed files with 68 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ module.exports = NodeHelper.create({
try {
new URL(url);
} catch (error) {
this.sendSocketNotification("INCORRECT_URL", { url: url });
this.sendSocketNotification("INCORRECT_URL", { url });
return;
}