Skip to content

Commit

Permalink
handle empty case
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Feb 13, 2025
1 parent 24fb0db commit 4e2e606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
/>
<button
type="submit"
onclick="window.location.href='https://devenv.new/?q=' + encodeURIComponent(document.querySelector('#generate input').value)"
onclick="if (document.querySelector('#generate input').value.trim() === '') { alert('Please enter what to generate'); return false; } window.location.href='https://devenv.new/?q=' + encodeURIComponent(document.querySelector('#generate input').value)"
class="px-6 py-2 bg-blue-900 text-white font-medium rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-900 focus:ring-offset-2 shadow-sm"
>
Generate
Expand Down

0 comments on commit 4e2e606

Please sign in to comment.