I got this error
Cannot read property ‘trim’ of undefined
when I set the data-options for <script src=“https://connect-cdn.atl-paas.net/all-debug.js” …
Here is the screenshot:
I tried both all.js and all-debug.js, the result is the same. When I set the data-options param empty everything works fine. If I set at least one parameter inside data-options everything breaks and AP. is undefined in my script.
Here is my HTML that is loaded as page from my domain
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://connect-cdn.atl-paas.net/all-debug.js"
data-options="sizeToParent:true;hideFooter:true;resize=false;margin=false;">
</script>
</head>
<body>
<h1>Hello World 5</h1>
<script>
window.onload = function()
{
console.log('----------------------------------------------------------------');
console.log(AP);
/* AP.getLocation(function(location){
alert(location);
});*/
}
</script>
</body>
</html>