Skip to content

Conversation

@Deer-Canidae
Copy link

@Deer-Canidae Deer-Canidae commented Mar 4, 2025

This PR adds default bangs in URL params through default_bang.

  • Local storage is still honored if set
  • Fallback in case of invalid bang has been hardened
  • A UI has been added to let users pick their default bang

Why add this PR:

  • This would enable mobile users to pick a default without the use of dev tools
  • Simplifies the default bang selection for non techie users
  • It's just nice

On a more personal note. This is my first PR to a public project. Let me know if anything can be improved!

* Allows mobile user to select a default bang without using dev tools
* Keep honoring legacy local-storage
* More resilient bang fallback
@vercel
Copy link

vercel bot commented Mar 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unduck ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 2:37am

@Deer-Canidae
Copy link
Author

Closes #35

list="bang-list"
spellcheck="false"
/>
<input type="submit" value="Apply" class"bang-confirm"/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a syntax error in the class attribute - it's missing an equals sign. The correct syntax should be class="bang-confirm" rather than class"bang-confirm".

Suggested change
<input type="submit" value="Apply" class"bang-confirm"/>
<input type="submit" value="Apply" class="bang-confirm"/>

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant