You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/excel/26-document/get-file-in-slices-async.yaml
+8-4
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ script:
35
35
console.log("Received the full contents of the file.");
36
36
37
37
let base64string = base64js.fromByteArray(byteArray);
38
-
$('#file-contents').val(base64string).show();
38
+
const fileContentsElement = document.getElementById("file-contents") as HTMLTextAreaElement;
39
+
fileContentsElement.value = base64string;
40
+
fileContentsElement.style.display = "block";
39
41
40
42
console.log("The Base64-encoded string that represents the current document has been written to the text box. To validate the string, use the \"Create workbook from string\" button.");
0 commit comments