@@ -653,14 +653,20 @@ const createOverlay = (options) => {
653
653
const navButtonGroup = doc . createElement ( "div" ) ;
654
654
applyStyle ( navButtonGroup , navigationStyle ) ;
655
655
const prevButton = doc . createElement ( "button" ) ;
656
- prevButton . innerHTML = `<span>⌘ + ←</span> PREV` ;
656
+ const prevButtonContent = `<span>⌘ + ←</span> PREV` ;
657
+ prevButton . innerHTML = overlayTrustedTypesPolicy
658
+ ? overlayTrustedTypesPolicy . createHTML ( prevButtonContent )
659
+ : prevButtonContent ;
657
660
applyStyle ( prevButton , navButtonStyle ) ;
658
661
prevButton . addEventListener ( "click" , ( ) => {
659
662
overlayService . send ( { type : "NAVIGATE" , direction : "prev" } ) ;
660
663
} ) ;
661
664
662
665
const nextButton = doc . createElement ( "button" ) ;
663
- nextButton . innerHTML = `NEXT <span>⌘ + →</span>` ;
666
+ const nextButtonContent = `NEXT <span>⌘ + →</span>` ;
667
+ nextButton . innerHTML = overlayTrustedTypesPolicy
668
+ ? overlayTrustedTypesPolicy . createHTML ( nextButtonContent )
669
+ : nextButtonContent ;
664
670
applyStyle ( nextButton , navButtonStyle ) ;
665
671
nextButton . addEventListener ( "click" , ( ) => {
666
672
overlayService . send ( { type : "NAVIGATE" , direction : "next" } ) ;
@@ -758,7 +764,9 @@ const createOverlay = (options) => {
758
764
759
765
// Update the error counter
760
766
if ( currentErrorCountElement ) {
761
- currentErrorCountElement . textContent = `ERROR ${ currentErrorIndex + 1 } /${ currentMessages . length } ` ;
767
+ currentErrorCountElement . textContent = `ERROR ${ currentErrorIndex + 1 } /${
768
+ currentMessages . length
769
+ } `;
762
770
}
763
771
764
772
// Clear previous content
0 commit comments