From 8e9214f5d4d2a725eecdb11368451d99168ae240 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 27 Apr 2019 00:01:17 +0200 Subject: storing urls in database --- client/app.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/app.js b/client/app.js index ba77be6..cadafef 100644 --- a/client/app.js +++ b/client/app.js @@ -32,6 +32,11 @@ export default class PhashApp extends Component { }) } + submit() { + const { url } = this.state + if (!url || url.indexOf('http') !== 0) return + } + render() { return (
@@ -52,7 +57,20 @@ export default class PhashApp extends Component { } return (
- + + {image &&
}
) -- cgit v1.2.3-70-g09d2