Browse Source

Change variable name

Sander Borst 2 năm trước cách đây
mục cha
commit
abb0596ed2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      resources/js/preload.js

+ 2 - 2
resources/js/preload.js

@@ -24,8 +24,8 @@ function getFilePathFromClipboard () {
  * @returns Buffer containing the contents of the clipboard for the specified format, or null if not available.
  */
 function getClipboardData (format) {
-  if (clipboard.has(mime, "clipboard")) {
-    return clipboard.readBuffer(mime)
+  if (clipboard.has(format, "clipboard")) {
+    return clipboard.readBuffer(format)
   }
   else {
     return null;