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
1515 */
1616 public function execute ()
1717 {
18- $ this ->getResponse ()->setBody ('<script>setTimeout(" self.close()", 1000);</script> ' );
18+ $ this ->getResponse ()->setBody ('<script>setTimeout(self.close.bind(this), 1000);</script> ' );
1919 }
2020}
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ define([
1919 window . onRequestAnimationFrame ||
2020 window . msRequestAnimationFrame ||
2121 function ( callback ) {
22+ if ( typeof callback != 'function' ) {
23+ throw new Error ( 'raf argument "callback" must be of type function' ) ;
24+ }
2225 window . setTimeout ( callback , 1000 / 60 ) ;
2326 } ;
2427
You can’t perform that action at this time.
0 commit comments