Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On cancel or close the main window opened where a print button is embedded closes too! how do i only close the print and preview and not my main tab? #97

Closed
jovi09 opened this issue Nov 16, 2021 · 3 comments · Fixed by #122

Comments

@jovi09
Copy link

jovi09 commented Nov 16, 2021

No description provided.

@MixinsSmartSystem
Copy link

@ open the index.js for VueHtmlToPaper by click on .
after the line 76 add this line
win.close()

@syx-pravin
Copy link

To stay on your main tab and to close only print dialogue, you need to do the following changes.

open index.js and search for the line

setTimeout(function () {window.close();}, 1);
cb();
}, 1000);

and replace this code with

setTimeout(function () {}, 1);
cb();
}, 1000);

Now add win.close(); after win.print(); statement.

@rayamjad
Copy link

Just replace
setTimeout(function () {window.close();}, 1);
cb();
}, 1000);

with

setTimeout(function () {win.close();}, 1);
cb();
}, 1000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants