We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6ff0c4 + a4a08f7 commit 7651b6eCopy full SHA for 7651b6e
src/plugin/toolBar.ts
@@ -25,7 +25,11 @@ function createToolBarRBContainer(mind: MindElixirInstance) {
25
// toolBarRBContainer.appendChild(percentage)
26
toolBarRBContainer.className = 'mind-elixir-toolbar rb'
27
fc.onclick = () => {
28
- mind.el.requestFullscreen()
+ if (document.fullscreenElement === mind.el) {
29
+ document.exitFullscreen()
30
+ } else {
31
+ mind.el.requestFullscreen()
32
+ }
33
}
34
gc.onclick = () => {
35
mind.toCenter()
0 commit comments