Rename popup
This commit is contained in:
parent
25aadab4a0
commit
28046e103c
2 changed files with 1 additions and 29 deletions
|
@ -1,28 +0,0 @@
|
|||
<script lang="ts">
|
||||
import { Communicator } from "../../communication";
|
||||
|
||||
let isON = false;
|
||||
|
||||
const con = new Communicator();
|
||||
con.setEnabledCallback = (v) => (isON = v);
|
||||
Communicator.getEnabled().then((v) => (isON = v));
|
||||
|
||||
const handleClick = () => {
|
||||
isON = !isON;
|
||||
Communicator.setEnabled(isON);
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
#container {
|
||||
display: flex;
|
||||
min-width: 320px;
|
||||
}
|
||||
button {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="container">
|
||||
<button on:click={handleClick}>{isON ? 'ON' : 'OFF'}</button>
|
||||
</div>
|
|
@ -1,2 +1,2 @@
|
|||
import App from "./popup.svelte";
|
||||
import App from "./Popup.svelte";
|
||||
new App({ target: document.body });
|
||||
|
|
Loading…
Reference in a new issue