File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Integration/Controller/Adminhtml/Integration
Ui/view/base/web/js/lib/view/utils Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ class LoginSuccessCallback extends \Magento\Integration\Controller\Adminhtml\Int
15
15
*/
16
16
public function execute ()
17
17
{
18
- $ this ->getResponse ()->setBody ('<script>setTimeout(" self.close()", 1000);</script> ' );
18
+ $ this ->getResponse ()->setBody ('<script>setTimeout(self.close.bind(this), 1000);</script> ' );
19
19
}
20
20
}
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ define([
19
19
window . onRequestAnimationFrame ||
20
20
window . msRequestAnimationFrame ||
21
21
function ( callback ) {
22
+ if ( typeof callback != 'function' ) {
23
+ throw new Error ( 'raf argument "callback" must be of type function' ) ;
24
+ }
22
25
window . setTimeout ( callback , 1000 / 60 ) ;
23
26
} ;
24
27
You can’t perform that action at this time.
0 commit comments