File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ Raven.prototype = {
431431 */
432432 _attachPromiseRejectionHandler : function ( ) {
433433 this . _promiseRejectionHandler = this . _promiseRejectionHandler . bind ( this ) ;
434- _window . addEventListener ( 'unhandledrejection' , this . _promiseRejectionHandler ) ;
434+ _window . addEventListener && _window . addEventListener ( 'unhandledrejection' , this . _promiseRejectionHandler ) ;
435435 return this ;
436436 } ,
437437
@@ -441,7 +441,7 @@ Raven.prototype = {
441441 * @return {raven }
442442 */
443443 _detachPromiseRejectionHandler : function ( ) {
444- _window . removeEventListener ( 'unhandledrejection' , this . _promiseRejectionHandler ) ;
444+ _window . removeEventListener && _window . removeEventListener ( 'unhandledrejection' , this . _promiseRejectionHandler ) ;
445445 return this ;
446446 } ,
447447
You can’t perform that action at this time.
0 commit comments