nosdav / pastebin

NosDAV pastebin
https://nosdav.github.io/pastebin/
MIT License
8 stars 1 forks source link

Refactor updateDownloadLink function #10

Closed melvincarvalho closed 1 year ago

melvincarvalho commented 1 year ago

This issue is to refactor the updateDownloadLink function by using the component state and removing global variables.

Suggested changes:

  1. Move the updateDownloadLink function inside the App class.
  2. Update the function to access the state values.
  3. Update the function calls to use the instance method.
  4. Update the event listeners for the file-name input field to use the class method instead of the global function.