Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
api.on('fullscreen-exit', () => {
if (Modernizr.lockorientation) {
Modernizr.prefixed('unlockOrientation', screen)('landscape');
} else if (Modernizr.orientationlock) {
screen.orientation.unlock();
}
this.applyRatio();
});
});
api.on('fullscreen-exit', () => {
if (Modernizr.lockorientation) {
Modernizr.prefixed('unlockOrientation', screen)('landscape');
} else if (Modernizr.orientationlock) {
screen.orientation.unlock();
}
this.applyRatio();
});
});