mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-02-28 02:50:50 -08:00
Fix random object has been destroyed bug when removing workspace (#169)
This commit is contained in:
parent
30fb5a2573
commit
d730cf7b71
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue