You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem exist only on safari.
Line
this.parent = $document.find('body')[0];//this.parent = undefined;
...
this.parent.appendChild(this.progressbarEl[0]);//thows error
throws error:
TypeError: 'undefined' is not an object (evaluating 'this.parent.appendChild')
Can you please replace it lie:
this.parent =$document[0].body;
Example test case:
app.run([
'ngProgressFactory',
'$document',
function (
ngProgressFactory,
$document
) {
if (!$document.find('body')[0]) {
console.error('Erorr');
}
ajaxProgressBar = ngProgressFactory.createInstance();//throws error
......
}
]);
The text was updated successfully, but these errors were encountered:
The problem exist only on safari.
Line
this.parent = $document.find('body')[0];//this.parent = undefined;
...
this.parent.appendChild(this.progressbarEl[0]);//thows error
throws error:
TypeError: 'undefined' is not an object (evaluating 'this.parent.appendChild')
Can you please replace it lie:
this.parent =$document[0].body;
Example test case:
app.run([
'ngProgressFactory',
'$document',
function (
ngProgressFactory,
$document
) {
if (!$document.find('body')[0]) {
console.error('Erorr');
}
ajaxProgressBar = ngProgressFactory.createInstance();//throws error
......
}
]);
The text was updated successfully, but these errors were encountered: