Update src/components/itemcontextmenu.js

Co-Authored-By: Julien Machiels <julien.machiels@protonmail.com>
This commit is contained in:
Richmond Macaspac 2020-03-12 03:12:01 -05:00 committed by GitHub
parent 52e39e792f
commit 6a308ffae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,7 +346,7 @@ define(["apphost", "globalize", "connectionManager", "itemHelper", "appRouter",
break; break;
case "copy-stream": case "copy-stream":
var downloadHref = apiClient.getItemDownloadUrl(itemId); var downloadHref = apiClient.getItemDownloadUrl(itemId);
var textareaCopy = function () { var textAreaCopy = function () {
var textArea = document.createElement("textarea"); var textArea = document.createElement("textarea");
textArea.value = downloadHref; textArea.value = downloadHref;
document.body.appendChild(textArea); document.body.appendChild(textArea);