Skip to content

Instantly share code, notes, and snippets.

View robmazan's full-sized avatar

Robert Mazan robmazan

  • EPAM Systems
  • Szeged
View GitHub Profile
@robmazan
robmazan / debugFocus.js
Created November 2, 2020 15:32
Debug focus changes in browser
setInterval(() => (window.prevFocus !== document.activeElement) && (console.log(document.activeElement),window.prevFocus=document.activeElement), 500)