Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SKlimov authored and chloe-zh committed Dec 15, 2020
1 parent 0a5f353 commit 28891ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workbench/public/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function scrollToNode(nodeId: string): void {

// Download functions
export function onDownloadFile(data: any, fileFormat: string, fileName: string) {
const encodedUri = encodeURI(data);
const encodedUri = encodeURIComponent(data);
const content = 'data:text/'+fileFormat+';charset=utf-8,' + encodedUri;
const link = document.createElement("a");
link.setAttribute('href', content);
Expand Down

0 comments on commit 28891ad

Please sign in to comment.