|
@@ -50,6 +50,7 @@ import beatIcon from '/src/components/layout/images/beatIcon.png';
|
|
|
import toneIcon from '/src/components/layout/images/toneIcon.png';
|
|
|
import { px2vw } from '/src/utils';
|
|
|
import PlaceholderTone from '/src/components/layout/modals/placeholderTone';
|
|
|
+import { state as globalState } from '/src/state';
|
|
|
import { state } from '/src/state';
|
|
|
export type ToolType = 'init' | 'pen' | 'whiteboard';
|
|
|
export type ToolItem = {
|
|
@@ -1341,7 +1342,7 @@ export default defineComponent({
|
|
|
type="primary"
|
|
|
onClick={() => {
|
|
|
//
|
|
|
- if (window.matchMedia('(display-mode: standalone)').matches) {
|
|
|
+ if (globalState.application) {
|
|
|
document.exitFullscreen
|
|
|
? document.exitFullscreen()
|
|
|
: document.mozCancelFullScreen
|