Fix HTML extraction in WebExtensions (#1920)

main
Camille Barneaud 7 years ago committed by Elbert Alias
parent 2ba7b292eb
commit b682b4440f

@ -2,7 +2,7 @@
if ( typeof browser !== 'undefined' && typeof document.body !== 'undefined' ) {
try {
var html = document.documentElement.outerHTML;
var html = new XMLSerializer().serializeToString(document);
if ( html.length > 50000 ) {
html = html.substring(0, 25000) + html.substring(html.length - 25000, html.length);

Loading…
Cancel
Save