setup_document.js 354 字节
Newer Older
N
nem035 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const appInstance = require('../../app');

module.exports = () => {
  $(document).on('click', 'a', (e) => {
    e.preventDefault();

    if (!window.open($(this).attr('href'), '_blank')) {
      alert('Please allow popups for this site');
    }
  });

  $(document).mouseup(function(e) {
    appInstance.getTracerManager().command('mouseup', e);
  });
};