mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-24 05:21:02 -08:00
Update setupViewEventHandlers.ts
This commit is contained in:
parent
3f1714bbdd
commit
01cb579e36
1 changed files with 0 additions and 7 deletions
|
|
@ -79,13 +79,6 @@ export default function setupViewEventHandlers(
|
|||
});
|
||||
});
|
||||
view.webContents.on('did-stop-loading', async () => {
|
||||
const workspaceObject = await workspaceService.get(workspace.id);
|
||||
// this event might be triggered
|
||||
// even after the workspace obj and BrowserView
|
||||
// are destroyed. See https://github.com/atomery/webcatalog/issues/836
|
||||
if (workspaceObject === undefined) {
|
||||
return;
|
||||
}
|
||||
await workspaceViewService.updateLastUrl(workspace.id);
|
||||
});
|
||||
view.webContents.on('did-finish-load', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue