Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
fix URI encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcui1225 committed Dec 28, 2020
1 parent d485d34 commit 8d616a7
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 8d616a7

Please sign in to comment.