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:
parent
9df24f7935
commit
796887fb38
1 changed files with 2 additions and 6 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue