From c98dc7f19992cdf6c1dc587c2eeb10ef6e1b2117 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 14 Feb 2022 11:33:47 +0800 Subject: [PATCH 1/2] updated docs Signed-off-by: wusongqing --- en/application-dev/reference/apis/js-apis-window.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/application-dev/reference/apis/js-apis-window.md b/en/application-dev/reference/apis/js-apis-window.md index 33f56166dd0..c95f1e6aefb 100644 --- a/en/application-dev/reference/apis/js-apis-window.md +++ b/en/application-dev/reference/apis/js-apis-window.md @@ -638,7 +638,7 @@ Obtains the mode of this window. ``` window.getAbilityWindowMode((err, data) => { if (err) { - console.error(''Failed to obtain the window mode. Cause:' + JSON.stringify(err)); + console.error('Failed to obtain the window mode. Cause:' + JSON.stringify(err)); return; } console.info('Window mode obtained. Data:' + JSON.stringify(data)) -- Gitee From 38b68af04b2289a3e8aa255ff7f15ce97211232f Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 14 Feb 2022 11:50:09 +0800 Subject: [PATCH 2/2] updated docs Signed-off-by: wusongqing --- en/application-dev/reference/apis/js-apis-window.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/en/application-dev/reference/apis/js-apis-window.md b/en/application-dev/reference/apis/js-apis-window.md index c95f1e6aefb..3493f9813ba 100644 --- a/en/application-dev/reference/apis/js-apis-window.md +++ b/en/application-dev/reference/apis/js-apis-window.md @@ -9,6 +9,10 @@ import window from '@ohos.window'; ``` +## System Capabilities +SystemCapability.WindowManager.WindowManager.Core + + ## Required Permissions ohos.permission.SYSTEM\_FLOAT\_WINDOW -- Gitee