Reload extension after disconnec

This commit is contained in:
Artyom Abubakirov 2018-06-06 21:37:57 +05:00
parent 77f8f888ea
commit 8bf131b78c

View File

@ -493,7 +493,7 @@ function startSharing(){
socket.on('disconnect', function(){ socket.on('disconnect', function(){
console.log('Disconnected from socket'); console.log('Disconnected from socket');
setDefaults(); setDefaults();
dispose(); chrome.runtime.reload();
}); });
socket.on('presenterResponse', function(data) { socket.on('presenterResponse', function(data) {
@ -505,7 +505,7 @@ function startSharing(){
socket.on('stopCommunication', function(data) { socket.on('stopCommunication', function(data) {
console.log('stopCommunication'); console.log('stopCommunication');
setDefaults(); setDefaults();
dispose(); chrome.runtime.reload();
}); });
socket.on('iceCandidate', function(data) { socket.on('iceCandidate', function(data) {