mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 14:14:36 +08:00
Fix new Linkifier clicks not registering
I renamed the event but missed an event listener. Change-Id: I0a042be97510763515901685e16324f50cb523aa Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2584265 Reviewed-by: Alfonso Castaño <alcastano@google.com> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
3c18d56820
commit
145deff4cc
@@ -37,7 +37,7 @@
|
||||
|
||||
const container = document.getElementById('container');
|
||||
|
||||
container.addEventListener('linkifier-click', function(event) {
|
||||
container.addEventListener('linkifier-activated', function(event) {
|
||||
const data = JSON.stringify(event.data, null, 2)
|
||||
alert(`Linkifier click: ${data}`)
|
||||
|
||||
|
||||
@@ -1006,7 +1006,7 @@ function listenForNewComponentLinkifierEvents() {
|
||||
listeningToNewEvents = true;
|
||||
|
||||
window.addEventListener(
|
||||
'linkifier-click',
|
||||
'linkifier-activated',
|
||||
/**
|
||||
*
|
||||
* @param {!Event} event
|
||||
|
||||
Reference in New Issue
Block a user