diff options
-rw-r--r-- | main.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -341,12 +341,23 @@ if (window.location !== window.parent.location) { btn.classList.add(classActive); btn.classList.remove(classInactive); btn.title = titleActive; + + const exp = document.getElementById('export-to-image'); + if (exp !== undefined) { + /* hide export button in fullscreen mode as it exits it */ + exp.classList.add('d-none'); + } }) control.addEventListener('leavefullscreen', function() { const btn = control.element.getElementsByTagName('button')[0]; btn.classList.add(classInactive); btn.classList.remove(classActive); btn.title = titleInactive; + + const exp = document.getElementById('export-to-image'); + if (exp !== undefined) { + exp.classList.remove('d-none'); + } }) })(); |