fix popup

This commit is contained in:
a 2020-08-09 13:02:28 +02:00
parent e5063526e0
commit d2ceb2da2c

View file

@ -38,7 +38,7 @@ customElements.define("lingo-toggle", Toggle, {
extends: "button",
});
const toggle = <Toggle>document.querySelector("button[is=extension-toggle]");
const toggle = <Toggle>document.querySelector("button[is=lingo-toggle]");
toggle.addEventListener("toggled", ((e: CustomEvent) => {
Communicator.setEnabled(e.detail);
}) as EventListener); //Hate to do this but ts forced me