fixing width by removing scrollbar
This commit is contained in:
@@ -5,5 +5,5 @@
|
|||||||
z-index: -9999
|
z-index: -9999
|
||||||
top: 0
|
top: 0
|
||||||
left: 0
|
left: 0
|
||||||
width: $newsletter-width + 20
|
width: $newsletter-width
|
||||||
max-width: $newsletter-width + 20
|
max-width: $newsletter-width
|
@@ -28,6 +28,7 @@ export const fromUrl = url =>
|
|||||||
const protocol = location.href.startsWith('https://') ? 'https:' : 'http:';
|
const protocol = location.href.startsWith('https://') ? 'https:' : 'http:';
|
||||||
iframe.src = protocol + url.replace(/^https?:/, '');
|
iframe.src = protocol + url.replace(/^https?:/, '');
|
||||||
iframe.style.opacity = 0;
|
iframe.style.opacity = 0;
|
||||||
|
iframe.scrolling = 'no';
|
||||||
iframe.onload = () => {
|
iframe.onload = () => {
|
||||||
fromDom(iframe.contentDocument.documentElement)
|
fromDom(iframe.contentDocument.documentElement)
|
||||||
.then((image) => {
|
.then((image) => {
|
||||||
|
Reference in New Issue
Block a user