Mozilla Firefox don't have 'selection.type'

Mozilla Firefox don't have 'selection.type'. They have https://developer.mozilla.org/en-US/docs/Web/API/Selection/toString.