diff --git a/bookmarklet.js b/bookmarklet.js index eafaeca..169072d 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -51,9 +51,13 @@ // add overlay frame var appFrame = createOverlayFrame(); $("body").append(appFrame); + + // add convinient fields appFrame.window = appFrame.contentWindow; appFrame.document = appFrame.window.document; + appFrame.document.open(); + appFrame.document.close(); global.appFrame = appFrame; // add print dialog content @@ -66,6 +70,8 @@ // add convinient fields printFrame.window = printFrame.contentWindow; printFrame.document = printFrame.window.document; + printFrame.document.open(); + printFrame.document.close(); global.printFrame = printFrame; // add listeners to redraw crads on print event