Rename popup

This commit is contained in:
a 2020-08-11 16:34:57 +02:00
parent 25aadab4a0
commit 28046e103c
2 changed files with 1 additions and 29 deletions

View file

@ -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>

View file

@ -1,2 +1,2 @@
import App from "./popup.svelte";
import App from "./Popup.svelte";
new App({ target: document.body });