src/js/print.js
function getPrintStyleSheet() {
    let sheet;
    // document.styleSheets is an Object not an Array!
    for ( const i in document.styleSheets ) {
        if ( document.styleSheets.hasOwnProperty( i ) ) {
            sheet = document.styleSheets[ i ];
            if ( sheet.media.mediaText === 'print' ) {
                return sheet;
            }
        }
    }
    return null;
}
function getPrintStyleSheet() {
    let sheet;
    // document.styleSheets is an Object not an Array!
    for ( const i in document.styleSheets ) {
        if ( document.styleSheets.hasOwnProperty( i ) ) {
            sheet = document.styleSheets[ i ];
            if ( sheet.media.mediaText === 'print' ) {
                return sheet;
            }
        }
    }
    return null;
}
function getPrintStyleSheet ( ) { let sheet ; // document.styleSheets is an Object not an Array! for ( const i in document . styleSheets ) { if ( document . styleSheets . hasOwnProperty ( i ) ) { sheet = document . styleSheets [ i ] ; if ( sheet . media . mediaText === 'print' ) { return sheet ; } } } return null ; }
Gets print stylesheets
@return {Element} [description]
Gets print stylesheets