fixing width by removing scrollbar

This commit is contained in:
Amine Ben hammou
2018-03-12 12:03:25 +01:00
parent d3f9fb5f06
commit 1033c1c1cf
2 changed files with 3 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ export const fromUrl = url =>
const protocol = location.href.startsWith('https://') ? 'https:' : 'http:';
iframe.src = protocol + url.replace(/^https?:/, '');
iframe.style.opacity = 0;
iframe.scrolling = 'no';
iframe.onload = () => {
fromDom(iframe.contentDocument.documentElement)
.then((image) => {