commit 8556fb38d6ccaa5653fe2793cce7fc1f4e4f88ba
parent aad4c06d23c2986e53a2d046f9ccd0bc806e40a7
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Sat, 31 Dec 2016 22:01:16 +0100
Try fixing clipRect
Diffstat:
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/screencap.js b/screencap.js
@@ -238,12 +238,12 @@ function portalinfoScreen(){
return document.querySelector('#sidebar').getBoundingClientRect();
});
- page.clipRect = {
- top: clipRect.top,
- left: clipRect.left,
- width: clipRect.width,
- height: clipRect.height
- };
+ page.set('clipRect', {
+ top: clipRect.top,
+ left: clipRect.left,
+ width: clipRect.width,
+ height: clipRect.height
+ });
setTimeout(function() {s(filepath)}, "1000");
},
error: function () {
@@ -251,12 +251,12 @@ function portalinfoScreen(){
return document.querySelector('#sidebar').getBoundingClientRect();
});
- page.clipRect = {
- top: clipRect.top,
- left: clipRect.left,
- width: clipRect.width,
- height: clipRect.height
- };
+ page.set('clipRect', {
+ top: clipRect.top,
+ left: clipRect.left,
+ width: clipRect.width,
+ height: clipRect.height
+ });
setTimeout(function() {s(filepath)}, "1000");
}
});