Skip to content

Commit

Permalink
fix outline
Browse files Browse the repository at this point in the history
  • Loading branch information
g200kg committed Jul 27, 2020
1 parent 968d490 commit ed8d62e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webaudio-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,18 @@ if(window.customElements){
this.elem.style.outline="none";
}
this.onfocus=()=>{
switch(this.outline){
switch(+this.outline){
case null:
case 0:
console.log("0")
this.elem.style.outline="none";
break;
case 1:
console.log("1")
this.elem.style.outline="1px solid #444";
break;
default:
console.log("E")
this.elem.style.outline=this.outline;
}
}
Expand Down

0 comments on commit ed8d62e

Please sign in to comment.