fix(translation): open preview in new tab with full browser controls

Remove popup window restrictions to provide better user experience
with address bar, navigation buttons, and other browser features
This commit is contained in:
Russell Ballestrini 2025-07-01 20:00:05 -04:00
parent 9df24f7935
commit 796887fb38

View file

@ -1788,12 +1788,8 @@ export function openTranslateModal() {
translatedText.includes("<section"));
if (isHTML) {
// Auto-open preview window immediately
const previewWindow = window.open(
"",
"_blank",
"width=1200,height=800,scrollbars=yes,resizable=yes,location=no,menubar=no,toolbar=no,status=no",
);
// Auto-open preview in new tab
const previewWindow = window.open("", "_blank");
if (previewWindow) {
// Inject base URL for relative resources to work
const baseUrl =