scripts/code-viewer.js
function () {
      if (!codeViewer.codeActive) {
        return;
      }

      if (window.getSelection().empty) {
        window.getSelection().empty();
      }
      else if (window.getSelection().removeAllRanges) {
        window.getSelection().removeAllRanges();
      }
    }
function () {
      if (!codeViewer.codeActive) {
        return;
      }

      if (window.getSelection().empty) {
        window.getSelection().empty();
      }
      else if (window.getSelection().removeAllRanges) {
        window.getSelection().removeAllRanges();
      }
    }
function ( ) { if ( ! codeViewer . codeActive ) { return ; } if ( window . getSelection ( ) . empty ) { window . getSelection ( ) . empty ( ) ; } else if ( window . getSelection ( ) . removeAllRanges ) { window . getSelection ( ) . removeAllRanges ( ) ; } }
Clear any selection of code when swapping tabs or opening a new pattern.
Clear any selection of code when swapping tabs or opening a new pattern .