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
The error is coming when the app is first launched. The problem is on line 102:
document[fn.exitFullscreen]();
I fixed this issue by catching the error thrown by the promise like this :
document[fn.exitFullscreen]().catch(() => {});
Would love to have this solution officially.
For reference, I am using version 3.3.3. I also updated to the latest version which is at the moment v4.0.0 but the error is still there.
The text was updated successfully, but these errors were encountered:
I faced the same issue with Chrome 72.
There was an other solution in jpilfold/ngx-image-viewer#23 what has worked for me too.
exit: function () { if (this.isFullscreen) { document[fn.exitFullscreen](); } },
Sorry, something went wrong.
06af24e
fix solution: document.exitFullscreen().catch(err => Promise.resolve(err))
No branches or pull requests
The error is coming when the app is first launched. The problem is on line 102:
document[fn.exitFullscreen]();
I fixed this issue by catching the error thrown by the promise like this :
document[fn.exitFullscreen]().catch(() => {});
Would love to have this solution officially.
For reference, I am using version 3.3.3. I also updated to the latest version which is at the moment v4.0.0 but the error is still there.
The text was updated successfully, but these errors were encountered: