豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 243723c

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[InspectorView] Fix setting jslog context for toggle orientation button
Bug: none Change-Id: Ifbc94e13af2547daefaffef43fb7802b11fcbb28 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6988736 Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org> Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org> Auto-Submit: Ergün Erdoğmuş <ergunsh@chromium.org> Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
1 parent d65aeaf commit 243723c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front_end/ui/legacy/InspectorView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ export class InspectorView extends VBox implements ViewLocationResolver {
197197
this.#toggleOrientationButton = new ToolbarButton(
198198
i18nString(UIStrings.toggleDrawerOrientation),
199199
this.drawerSplitWidget.isVertical() ? 'dock-bottom' : 'dock-right');
200-
this.#toggleOrientationButton.element.setAttribute('jslog', `${VisualLogging.toggle().track({click: true})}`);
201-
this.#toggleOrientationButton.element.setAttribute('jslogcontext', 'toggle-drawer-orientation');
200+
this.#toggleOrientationButton.element.setAttribute(
201+
'jslog', `${VisualLogging.toggle('toggle-drawer-orientation').track({click: true})}`);
202202
this.#toggleOrientationButton.addEventListener(
203203
ToolbarButton.Events.CLICK, () => this.toggleDrawerOrientation(), this);
204204
this.drawerTabbedPane.addEventListener(

0 commit comments

Comments
 (0)