File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 916916 let placeholder ;
917917 if ( domtoimage . impl . options . imagePlaceholder ) {
918918 const split = domtoimage . impl . options . imagePlaceholder . split ( / , / ) ;
919- if ( split && split [ 1 ] ) {
919+ if ( split ?. [ 1 ] ) {
920920 placeholder = split [ 1 ] ;
921921 }
922922 }
11651165 function newWebFont ( webFontRule ) {
11661166 return {
11671167 resolve : function resolve ( ) {
1168- const baseUrl = ( webFontRule . parentStyleSheet || { } ) . href ;
1168+ const baseUrl = webFontRule . parentStyleSheet ? .href ;
11691169 return inliner . inlineAll ( webFontRule . cssText , baseUrl ) ;
11701170 } ,
11711171 src : function ( ) {
15061506 sandbox . setAttribute ( 'srcdoc' , sandboxHTML ) ;
15071507 return sandbox . contentWindow ;
15081508 } catch ( _ ) {
1509+ // NOSONAR
15091510 // swallow exception and fall through to the simplest path
15101511 }
15111512
You can’t perform that action at this time.
0 commit comments