There is a way around this to solve this problem and work correctly with all major browsers. This solution was found by Derik on the Github page to preview jQuery .
Here is the solution, around line 44 you will see the following code:
for (var i=0; i < window.frames.length; i++) {
if (window.frames[i].name == "print-frame") {
var print_frame_ref = window.frames[i].document;
break;
}
}
Replace the above code as follows:
print_frame_ref = print_frame[0].contentWindow.document;
the problem is resolved.
source
share