Skip to content

Commit

Permalink
Update push-uniapp.js
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Jun 10, 2023
1 parent b4c87c9 commit 2e3ee85
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/push-uniapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,15 @@ function createPresenceChannel(channel_name, push)
return createPrivateChannel(channel_name, push);
}

/*window.addEventListener('online', function(){
var con;
uni.onNetworkStatusChange(function (res) {
for (var i in Push.instances) {
con = Push.instances[i].connection;
con.reconnectInterval = 1;
if (con.state === 'connecting') {
con.connect();
}
}
});*/

});

function Connection(options) {
this.dispatcher = new Dispatcher();
Expand Down Expand Up @@ -821,4 +819,4 @@ function formatParams(data){
return arr.join('&');
}

export default Push
export default Push

0 comments on commit 2e3ee85

Please sign in to comment.