We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Chrome is blocking the popup I am creating. After some tests it appears to be an issue with window.open in asynchronous callback.
for example:
$scope.generatePdf = function () { $http.post('/someUrl', data).then( function (response) { pdfMake.createPdf(docDefinition).open(); }); };
My solution was to add a new parameter called win and add an if (look at the picture).
Now it works...
$scope.generatePdf = function () { var win = window.open('', '_blank'); $http.post('/someUrl', data).then( function (response) { pdfMake.createPdf(docDefinition).open(win); }); };
If I place the open.window outside of the callback that it works, but inside it is blocked.
Sorry for my English.
The text was updated successfully, but these errors were encountered:
duplicate: #587
Sorry, something went wrong.
No branches or pull requests
Chrome is blocking the popup I am creating. After some tests it appears to be an issue with window.open in asynchronous callback.
for example:
My solution was to add a new parameter called win and add an if (look at the picture).
Now it works...
If I place the open.window outside of the callback that it works, but inside it is blocked.
Sorry for my English.
The text was updated successfully, but these errors were encountered: