Skip to content

Commit

Permalink
improve filename
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikue committed Jan 26, 2023
1 parent b932f65 commit 32acc9c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/ExtensionBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,14 @@ export default Vue.extend({
const a = document.createElement("a");
const url = URL.createObjectURL(file);
a.href = url;
a.download = "screenshot.png";
const now = new Date();
const datetime = now.getFullYear() + "-"
+ (now.getMonth() + 1) + "-"
+ now.getDate() + " "
+ now.getHours() + "_"
+ now.getMinutes() + "_"
+ now.getSeconds();
a.download = "Flywire Screenshot " + datetime + ".png";
document.body.appendChild(a);
a.click();
setTimeout(function() {
Expand Down

0 comments on commit 32acc9c

Please sign in to comment.