From 7d5a0696ccc642db0d14aae8677ecada40bf85d1 Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 2 Aug 2018 16:50:59 -0700 Subject: inital commit --- addWindow.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'addWindow.html') diff --git a/addWindow.html b/addWindow.html index 7d9d347..747c53c 100644 --- a/addWindow.html +++ b/addWindow.html @@ -2,8 +2,6 @@ Add Shopping List Item - -
@@ -26,7 +24,12 @@ function submitForm(e) { e.preventDefault(); const item = document.querySelector("#item").value; + if (item.length == 0) { + alert("null value"); + } + else { ipcRenderer.send('item:add', item); + } } -- cgit v1.2.3