Native UI #1

Open
julia wants to merge 7 commits from jj/native into main
Showing only changes of commit ac9393c2b3 - Show all commits

16
main.js
View file

@ -129,10 +129,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
window.webkit.messageHandlers.copySnapshot.postMessage([
'clipboard',
boundingRect.x + 1,
boundingRect.y + 1,
boundingRect.width - 2,
boundingRect.height - 2,
boundingRect.x + 2,
boundingRect.y + 2,
boundingRect.width - 3,
boundingRect.height - 3,
]);
};
@ -142,10 +142,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
window.webkit.messageHandlers.copySnapshot.postMessage([
'file',
boundingRect.x + 1,
boundingRect.y + 1,
boundingRect.width - 2,
boundingRect.height - 2,
boundingRect.x + 2,
boundingRect.y + 2,
boundingRect.width - 3,
boundingRect.height - 3,
]);
};