Fix random object has been destroyed bug when removing workspace (#169)

This commit is contained in:
Quang Lam 2020-03-26 19:16:29 +07:00 committed by GitHub
parent 30fb5a2573
commit d730cf7b71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -404,7 +404,11 @@ const addView = (browserWindow, workspace) => {
// Link preview
view.webContents.on('update-target-url', (e, url) => {
view.webContents.send('update-target-url', url);
try {
view.webContents.send('update-target-url', url);
} catch (err) {
console.log(err); // eslint-disable-line no-console
}
});
// Handle audio & notification preferences