mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
fix: downloadText() method to accommodate .md file format
This commit is contained in:
parent
a0e42aae9e
commit
7c7b5abad3
@ -3831,7 +3831,8 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
*/
|
*/
|
||||||
function downloadText()
|
function downloadText()
|
||||||
{
|
{
|
||||||
var filename='paste-' + Model.getPasteId() + '.txt';
|
var fileFormat = PasteViewer.getFormat() === 'markdown' ? '.md' : '.txt';
|
||||||
|
var filename='paste-' + Model.getPasteId() + fileFormat;
|
||||||
var text = PasteViewer.getText();
|
var text = PasteViewer.getText();
|
||||||
|
|
||||||
var element = document.createElement('a');
|
var element = document.createElement('a');
|
||||||
|
Loading…
Reference in New Issue
Block a user