Seen in src/ui/renderer.js
return wait( 200 ) .then( function () { bindBehavior( preview, behavior ); } ) .then( function () { behavior.previewShow( token ); } );
This two .then blocks are unnecessary and everything can be done in a single .then block as the statements in them are sync and are not returning any promises.
return wait( 200 ) .then( function () { bindBehavior( preview, behavior ); - } ) - .then( function () { behavior.previewShow( token ); } );
Inspect the Popups codebase for .then usages and coalesce misuses of promises into single .then blocks
AC
- Codebase has been inspected
- Repeated unnecessary .then blocks have been merged