Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fevziatanoglu committed May 19, 2024
1 parent 5356026 commit 9e20e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Home() {
try {
setLoading(true);
// check is url slideshare link
if (!slideShareUrl.startsWith("https://www.slideshare.net/") || !slideShareUrl.startsWith("http://www.slideshare.net/")) {
if (!slideShareUrl.startsWith("https://www.slideshare.net/") && !slideShareUrl.startsWith("http://www.slideshare.net/")) {
// if not set error
setError('Link have to starts with "https://www.slideshare.net". Please check again.');
setSlideShareUrl('');
Expand Down

0 comments on commit 9e20e5e

Please sign in to comment.