mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-24 04:14:57 +00:00
11 lines
319 B
JavaScript
11 lines
319 B
JavaScript
|
import 'https://js.pusher.com/7.2/pusher.min.js';
|
||
|
var pusher = new Pusher('93b3e504421787295454', {
|
||
|
cluster: 'us2'
|
||
|
});
|
||
|
|
||
|
var channel = pusher.subscribe('touchedItem');
|
||
|
channel.bind('RefreshPage', function(data) {
|
||
|
window.location.reload();
|
||
|
console.log(JSON.stringify(data));
|
||
|
});
|