2 ms·
IIUC many APIs (e.g. requestFullscreen()) are only callable from JS during a short window of time following a user interaction. The userActivation property allo
by aravindet 8y ago
IIUC many APIs (e.g. requestFullscreen()) are only callable from JS during a short window of time following a user interaction. The userActivation property allows programs to check whether those APIs are callable, rather than calling them blindly and catching errors.