Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dawsmith06 authored Jul 13, 2020
1 parent bb4f3c7 commit 3f04b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const idle = (function(){
this.idle = state;
},

subscribe(channelName,callback){
let channel = new BroadcastChannel(channelName);
subscribe(name,callback){
let channel = new BroadcastChannel(name);
channel.onmessage = ((e) =>{
callback(e);
});
Expand Down

0 comments on commit 3f04b01

Please sign in to comment.