Skip to content

Commit

Permalink
Merge pull request #1 from vsliouniaev/clear-unload
Browse files Browse the repository at this point in the history
Clear input on page unload
  • Loading branch information
vsliouniaev authored Sep 19, 2023
2 parents 64de18a + 904fe86 commit 5acd9fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/vsliouniaev/go-pass-cache

go 1.18
go 1.21

require (
github.com/NYTimes/gziphandler v1.1.1
github.com/catcombo/go-staticfiles v0.4.0
github.com/onsi/gomega v1.11.0
github.com/onsi/gomega v1.27.10
)

require (
Expand Down
4 changes: 4 additions & 0 deletions www/static/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,7 @@
return document.getElementById('accessUrl').innerHTML
}
}

window.onbeforeunload = function() {
document.getElementById('data').value = ""
}

0 comments on commit 5acd9fc

Please sign in to comment.