From 6e864d851ff3f149c5ca4d8dfd93fcc67c84a899 Mon Sep 17 00:00:00 2001 From: PingPing2023 Date: Wed, 6 Sep 2023 07:53:23 +0000 Subject: [PATCH] update zh-cn/application-dev/device/pointerstyle-guidelines.md. Signed-off-by: PingPing2023 --- zh-cn/application-dev/device/pointerstyle-guidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/device/pointerstyle-guidelines.md b/zh-cn/application-dev/device/pointerstyle-guidelines.md index 0f3d451f1a..fabac3d7c4 100644 --- a/zh-cn/application-dev/device/pointerstyle-guidelines.md +++ b/zh-cn/application-dev/device/pointerstyle-guidelines.md @@ -87,7 +87,7 @@ window.getLastWindow(this.context, (error, windowClass) => { console.error('Failed to obtain the top window. Cause: ' + JSON.stringify(error)); return; } - var windowId = windowClass.getWindowProperties().id; + let windowId = windowClass.getWindowProperties().id; if (windowId < 0) { console.log(`Invalid windowId`); return; @@ -107,7 +107,7 @@ window.getLastWindow(this.context, (error, windowClass) => { console.error('Failed to obtain the top window. Cause: ' + JSON.stringify(error)); return; } - var windowId = windowClass.getWindowProperties().id; + let windowId = windowClass.getWindowProperties().id; if (windowId < 0) { console.log(`Invalid windowId`); return; -- GitLab