This commit is contained in:
Harvey Zack committed 2018-11-05 17:44:27 +08:00
1 parent 7beef11087
commit 851303e530
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ export default class FullscreenWeb {
this.$fullscreenWeb = append($control, icons.fullscreenWeb);
tooltip(this.$fullscreenWeb, i18n.get('Web fullscreen'));
proxy($control, 'click', () => {
if (controls.fullscreen) {
if (controls.fullscreen && controls.fullscreen.state) {
controls.fullscreen.exit();
}
+1 -1
View File
@@ -18,7 +18,7 @@ export default class Fullscreen {
tooltip(this.$fullscreen, i18n.get('Fullscreen'));
proxy($control, 'click', () => {
if (controls.fullscreenWeb) {
if (controls.fullscreenWeb && controls.fullscreenWeb.state) {
controls.fullscreenWeb.exit();
}