src/highlight-page.js
function () {
            let selection = dom(el).getSelection(),
                range;

            if (selection.rangeCount > 0) {
                range = selection.getRangeAt(0);
            }

            return range;
        }
function () {
            let selection = dom(el).getSelection(),
                range;

            if (selection.rangeCount > 0) {
                range = selection.getRangeAt(0);
            }

            return range;
        }
function ( ) { let selection = dom ( el ) . getSelection ( ) , range ; if ( selection . rangeCount > 0 ) { range = selection . getRangeAt ( 0 ) ; } return range ; }
Returns first range of the window of base element.
@returns {Range}
Returns first range of the window of base element .