Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 301 Bytes

Readme.md

File metadata and controls

21 lines (15 loc) · 301 Bytes

on-full-screen

Cross-browser wrapper for the onfullscreen event.

How to use

import ofs from 'on-full-screen';
import isFs from 'is-full-screen';
const dispose = ofs(() => {
  if (isFs()) {
    console.log('we are fullscreened');
  }
});
setTimeout(dispose, 1000)

License

MIT