From 2a932d8b9c4309f4f33543b5d4ca5f0ee18dd6c6 Mon Sep 17 00:00:00 2001 From: SKlimov Date: Thu, 10 Dec 2020 22:44:51 +0300 Subject: [PATCH] Update utils.ts (#896) --- workbench/public/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workbench/public/utils/utils.ts b/workbench/public/utils/utils.ts index e7dafde799..a59e404330 100644 --- a/workbench/public/utils/utils.ts +++ b/workbench/public/utils/utils.ts @@ -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);