I’m having problems with a clients website, this code is working fine for windows computers but not on mac.
I have used a VM on browserstack for multiple versions of osx and they all work fine but on 3 of my friends macbooks it doesn’t – the window just doesnt close.
>
callback.html
[code=html]
<!DOCTYPE html>
<html lang=”en”>
<head><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<title>Connect with SoundCloud</title>
</head>
<body>
<b style=”width: 100%; text-align: center;”>This popup should automatically close in a few seconds</b>
<script type=”text/javascript”>
function myFunction() {
parent.window.setTimeout(parent.window.opener.SC.connectCallback, 1);
}
</script>
<button onclick=”myFunction()”>Close window</button>
</body>
</html>
The soundcloud api works perfectly for me but nobody else.
Can anyone please help?