aboutsummaryrefslogtreecommitdiffstats
path: root/src/controls.ts
blob: ad8f47cd51ec957bc0af01218f74c2e73423896a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import logger from './logger';
import wait_element from './wait_element';


const controls = {
	hide: function() {
		logger.debug('hide():', 'Hiding controls');

		wait_element('.PlayerControlsNeo__layout.PlayerControlsNeo__layout--active')
			.then(function(controls) {
				logger.debug('hide():', 'Controls:', controls);

				controls
					.classList
					.replace(
						'PlayerControlsNeo__layout--active',
						'PlayerControlsNeo__layout--inactive'
					);
			});
	}
};

export default controls;