浏览代码

Change variable name

Sander Borst 2 年之前
父节点
当前提交
abb0596ed2
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;