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

Update utils.ts #896

Merged
merged 1 commit into from
Dec 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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