Window.open() does not work on safari IOS 16

Viewed 16

I am using JavaScript window.open() method to open new window inside of async function, it works well in IE, Firefox, chrome, brave but not working in safari for mobile.

fetch('http://example.com/movies.json')
  .then((response) => 
    if(response){
      window.open('url')
    }
  )
  .catch((error) => console.log(error));
0 Answers
Related