-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Uncaught DOMException: An attempt was made to break through the security policy of the user agent. #354
Comments
Have you solved it yet? |
Not yet still looking to find it |
Has anyone solved this problem ? |
I get the same error, and did not find any info on it. |
1 similar comment
I get the same error, and did not find any info on it. |
Got same error, and did not find any info on it. |
Same error no info on it. |
same here |
same here. thanks. |
Has anyone found a solution to this problem? |
Same problem |
A possible workaroundSetting Up a Reference and Tracking the "Open" Event for ShareNetworkFirst, you need to create a ref for the const shareNetworkRef = ref(null);
<template>
<ShareNetwork ref="shareNetworkRef" @open="runWorkaround" />
</template> Implementing the Workaround FunctionDue to security restrictions, the function runWorkaround(index: number): void {
if (shareNetworkRef.value === null) return;
clearInterval(shareNetworkRef.value.popupInterval);
shareNetworkRef.value.popupWindow = undefined;
} Important ConsiderationBy applying this workaround, you will lose the ability to monitor the 'close' event of the |
Thank Your so much. I fixed this problem. Buts you need change your function like this: clearInterval(shareNetworkRef.value.popupInterval); |
Oh, missed it. Thank you, fixed. |
I am using Javascript and Vue 3 Version:- index is not required const runWorkaround = (index) => { clearInterval(shareNetworkRef.value.popupInterval); |
VUE2 NUXT vue-social-sharing . Error : Uncaught DOMException: An attempt was made to break through the security policy of the user agent. May I how to handle this issue? Thank you for your support. Uncaught DOMException: An attempt was made to break through the security policy of the user agent. |
For anybody still using the Option API, you can do the same thing like this: methods: {
runWorkaround() {
if (this.$refs.shareNetworkRef === null) return;
clearInterval(this.$refs.shareNetworkRef.popupInterval);
this.$refs.shareNetworkRef.popupWindow = undefined;
}
}, |
Index is needed when we are working with multiple sharing. I resolved the issue with.
|
I am getting this issue anyone other has such kind of issue please let me know how to fix it.
The text was updated successfully, but these errors were encountered: