You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error in the FireFox console is Permission denied to access property 'name' when Print Preview tries to access window.frames[i].name (line 47 of jquery.print-preview.js).
I was able to make this more FireFox friendly in an ad hoc way by first checking the frames array. But there's probably a more elegant cross-platform solution. In the meantime:
// The frame lives
if (frames["print-frame"]) {
var print_frame_ref = frames["print-frame"].document;
} else {
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;
}
}
}
Just FYI. Nice tool, thanks!
The text was updated successfully, but these errors were encountered:
If the page contains an embedded iframe (e.g. the Vimeo iframe embed code below), Print Preview will fail in FireFox.
The error in the FireFox console is
Permission denied to access property 'name'
when Print Preview tries to accesswindow.frames[i].name
(line 47 of jquery.print-preview.js).I was able to make this more FireFox friendly in an ad hoc way by first checking the
frames
array. But there's probably a more elegant cross-platform solution. In the meantime:Just FYI. Nice tool, thanks!
The text was updated successfully, but these errors were encountered: