diff options
Diffstat (limited to 'src/controls.ts')
-rw-r--r-- | src/controls.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/controls.ts b/src/controls.ts new file mode 100644 index 0000000..ad8f47c --- /dev/null +++ b/src/controls.ts @@ -0,0 +1,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; |