Skip to content

Commit

Permalink
Fixed download url. (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeburg authored Aug 21, 2024
1 parent a83db0c commit 091c505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/house.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ export default class HouseService extends Service {
const {document} = window;
const anchor = document.createElement('a');
anchor.href = url;
anchor.download = true;
anchor.download = url.split('/').pop();
document.body.appendChild(anchor);
anchor.click();
anchor.remove();
document.body.removeChild(anchor);
});
}

Expand Down

0 comments on commit 091c505

Please sign in to comment.