Native UI #1
1 changed files with 8 additions and 8 deletions
16
main.js
16
main.js
|
|
@ -129,10 +129,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
|
||||||
|
|
||||||
window.webkit.messageHandlers.copySnapshot.postMessage([
|
window.webkit.messageHandlers.copySnapshot.postMessage([
|
||||||
'clipboard',
|
'clipboard',
|
||||||
boundingRect.x + 1,
|
boundingRect.x + 2,
|
||||||
boundingRect.y + 1,
|
boundingRect.y + 2,
|
||||||
boundingRect.width - 2,
|
boundingRect.width - 3,
|
||||||
boundingRect.height - 2,
|
boundingRect.height - 3,
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -142,10 +142,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
|
||||||
|
|
||||||
window.webkit.messageHandlers.copySnapshot.postMessage([
|
window.webkit.messageHandlers.copySnapshot.postMessage([
|
||||||
'file',
|
'file',
|
||||||
boundingRect.x + 1,
|
boundingRect.x + 2,
|
||||||
boundingRect.y + 1,
|
boundingRect.y + 2,
|
||||||
boundingRect.width - 2,
|
boundingRect.width - 3,
|
||||||
boundingRect.height - 2,
|
boundingRect.height - 3,
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue