Skip to content

Commit

Permalink
fix: can not get correct image in Window 11
Browse files Browse the repository at this point in the history
  • Loading branch information
telesoho committed Oct 22, 2024
1 parent 2b33e98 commit 8df6ccb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xclip",
"version": "1.0.6",
"version": "1.0.7",
"description": "A crossplatform clipboard tools for copy & paste text, html and image.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
22 changes: 11 additions & 11 deletions res/scripts/win10_save_clipboard_png.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ function main {
[Console]::WriteLine($imagePath)
}

try {
# For WIN10
$file = Get-Clipboard -Format FileDropList
if ($null -ne $file) {
Convert-Path $file
Exit 1
}
} catch {
# For WIN7 WIN8 WIN10
main
}
# try {
# # For WIN10
# $file = Get-Clipboard -Format FileDropList
# if ($null -ne $file) {
# Convert-Path $file
# Exit 1
# }
# } catch {
# # For WIN7 WIN8 WIN10
# main
# }

main

0 comments on commit 8df6ccb

Please sign in to comment.