aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.js b/main.js
index 947d201..c0d0dfb 100644
--- a/main.js
+++ b/main.js
@@ -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');
+ }
})
})();