mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Show invalid url error on UI, add test case
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user