mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 17:10:53 +08:00
This commit is contained in:
parent
a3c0fecec8
commit
ad00bcd166
@ -346,7 +346,7 @@ export const bazaar = {
|
|||||||
bazaar._onBazaar(response, "themes", false);
|
bazaar._onBazaar(response, "themes", false);
|
||||||
bazaar._data.themes = response.data.packages;
|
bazaar._data.themes = response.data.packages;
|
||||||
});
|
});
|
||||||
bazaar.element.addEventListener("click", (event) => {
|
bazaar.element.firstElementChild.addEventListener("click", (event) => {
|
||||||
let target = event.target as HTMLElement;
|
let target = event.target as HTMLElement;
|
||||||
while (target && !target.isEqualNode(bazaar.element)) {
|
while (target && !target.isEqualNode(bazaar.element)) {
|
||||||
const type = target.getAttribute("data-type");
|
const type = target.getAttribute("data-type");
|
||||||
|
Loading…
Reference in New Issue
Block a user