sailei1 / blog

1 stars 0 forks source link

禁止别人debugger #124

Open sailei1 opened 1 year ago

sailei1 commented 1 year ago
(() => {
  function ban() {
    setInterval(() => {
      Function('debugger')();
    }, 50);
  }
  try {
    ban();
  } catch (err) { }
})();