fix keybind button
This commit is contained in:
parent
ac71e9bbcb
commit
8c4fae3410
1 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ function createButton(text, onClick) {
|
||||||
const button = document.createElement("button");
|
const button = document.createElement("button");
|
||||||
button.style.marginBottom = "20px";
|
button.style.marginBottom = "20px";
|
||||||
button.classList =
|
button.classList =
|
||||||
"button-f2h6uQ lookFilled-yCfaCM colorBrand-I6CyqQ sizeSmall-wU2dO- grow-2sR_-F";
|
"button-ejjZWC lookFilled-1H2Jvj colorBrand-2M3O3N sizeSmall-3R2P2p grow-2T4nbg";
|
||||||
button.innerText = text;
|
button.innerText = text;
|
||||||
button.addEventListener("click", onClick);
|
button.addEventListener("click", onClick);
|
||||||
return button;
|
return button;
|
||||||
|
@ -248,7 +248,7 @@ function main() {
|
||||||
div.style.marginBottom = "50px";
|
div.style.marginBottom = "50px";
|
||||||
div.appendChild(
|
div.appendChild(
|
||||||
createButton("Edit Global Keybinds", () => {
|
createButton("Edit Global Keybinds", () => {
|
||||||
userscript.log("!discord-screenaudio-keybinds");
|
userscript.showShortcutsDialog();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
el.innerHTML = "";
|
el.innerHTML = "";
|
||||||
|
@ -305,7 +305,7 @@ function main() {
|
||||||
|
|
||||||
section.appendChild(
|
section.appendChild(
|
||||||
createButton("Edit Global Keybinds", () => {
|
createButton("Edit Global Keybinds", () => {
|
||||||
userscript.log("!discord-screenaudio-keybinds");
|
userscript.showShortcutsDialog();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue