Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions dist/doboard-widget-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13867,7 +13867,7 @@ class FileUploader {
}
});

if (blob && blob.size < 100) {
if (blob && blob.size < 100) {
blob = null;
}
}
Expand Down Expand Up @@ -13895,9 +13895,13 @@ class FileUploader {
y: window.scrollY,
width: window.innerWidth,
height: window.innerHeight,
windowWidth: document.documentElement.offsetWidth,
windowHeight: document.documentElement.offsetHeight,
onclone: (clonedDoc) => {
clonedDoc.documentElement.style.width = window.innerWidth + 'px';
clonedDoc.documentElement.style.height = window.innerHeight + 'px';
clonedDoc.body.style.width = window.innerWidth + 'px';
clonedDoc.body.style.height = window.innerHeight + 'px';
clonedDoc.body.style.minHeight = window.innerHeight + 'px';

const transparentPixel = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';

clonedDoc.querySelectorAll('img').forEach(img => {
Expand Down
2 changes: 1 addition & 1 deletion dist/doboard-widget-bundle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/doboard-widget-bundle.min.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions js/src/fileuploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class FileUploader {
}
});

if (blob && blob.size < 100) {
if (blob && blob.size < 100) {
blob = null;
}
}
Expand Down Expand Up @@ -498,9 +498,13 @@ class FileUploader {
y: window.scrollY,
width: window.innerWidth,
height: window.innerHeight,
windowWidth: document.documentElement.offsetWidth,
windowHeight: document.documentElement.offsetHeight,
onclone: (clonedDoc) => {
clonedDoc.documentElement.style.width = window.innerWidth + 'px';
clonedDoc.documentElement.style.height = window.innerHeight + 'px';
clonedDoc.body.style.width = window.innerWidth + 'px';
clonedDoc.body.style.height = window.innerHeight + 'px';
clonedDoc.body.style.minHeight = window.innerHeight + 'px';
Comment on lines +502 to +506

const transparentPixel = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';

clonedDoc.querySelectorAll('img').forEach(img => {
Expand Down