Add event.stopPropagation() to extraNetworksShowMetadata()

Prevent bubbling the same way "replace preview" does
This commit is contained in:
missionfloyd
2023-03-20 18:04:22 -06:00
parent 64fc936738
commit 8e3ced73a8
2 changed files with 4 additions and 2 deletions

View File

@@ -132,10 +132,12 @@ function popup(contents){
globalPopup.style.display = "flex";
}
function extraNetworksShowMetadata(text){
function extraNetworksShowMetadata(event, text){
elem = document.createElement('pre')
elem.classList.add('popup-metadata');
elem.textContent = text;
popup(elem);
event.stopPropagation()
}