'Uncaught TypeError: Illegal invocation in window.open

We are getting :

Uncaught TypeError: Illegal invocation for window open

It's pretty simple and it should work correctly. when we do console it shows this

var t = i(); 
// console.log(t);    output is https://web.whatsapp.com/send?phone=6666666666

(t += "&text=" + encodeURIComponent(a)),
    window.open(t, "_blank").focus(),
    I();
}

Any help will be great.

I am getting this error in

window.open(twapp, "_blank").focus(),

Here is the live site

When you click on the chat in right bottom and tried to send msg this appears in console.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source