diff --git a/desktop-capturing.js b/desktop-capturing.js index 4b771b8..f64db12 100755 --- a/desktop-capturing.js +++ b/desktop-capturing.js @@ -493,7 +493,7 @@ function startSharing(){ socket.on('disconnect', function(){ console.log('Disconnected from socket'); setDefaults(); - dispose(); + chrome.runtime.reload(); }); socket.on('presenterResponse', function(data) { @@ -505,7 +505,7 @@ function startSharing(){ socket.on('stopCommunication', function(data) { console.log('stopCommunication'); setDefaults(); - dispose(); + chrome.runtime.reload(); }); socket.on('iceCandidate', function(data) {