Skip to content

Commit

Permalink
Sometimes hide URL when stdin is changed
Browse files Browse the repository at this point in the history
Fixes #42
  • Loading branch information
bbrk24 committed Nov 27, 2023
1 parent 586162a commit e221479
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wasm/in.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ hideUrl = ->
elements.urlButton.onclick = generateURL
elements.program.addEventListener 'input', hideUrl, passive: true
elements.includeInput.addEventListener 'change', hideUrl, passive: true
elements.stdin.addEventListener 'change', ->
hideUrl() if elements.includeInput.checked
, passive: true

toHex = (rgba) ->
return rgba if /^#[0-9a-d]{6}$/i.test rgba
Expand Down

0 comments on commit e221479

Please sign in to comment.