console.js 213 B

12345678
  1. window.consoleEmulatorScroll = (el) => {
  2. if (el) el.scrollTop = el.scrollHeight;
  3. };
  4. window.consoleHasSelection = () => {
  5. const sel = window.getSelection();
  6. return sel && sel.toString().length > 0;
  7. };