Skip to content
This repository was archived by the owner on Jun 4, 2023. It is now read-only.
This repository was archived by the owner on Jun 4, 2023. It is now read-only.

The BrowserViews are not getting destroyed after closing the BrowserWindow #653

@msynk

Description

@msynk

Currently, the clear method of the ViewManager class is using the Object.values method on the views list which is a Map as follows:

image

since the Object.values does not work on a Map and returns an empty array, the views are not getting destroyed.
(just try Object.values(new Map([['a', {a:1}], ['b', {b:2}]])) in the console)

for example, if you have multiple windows open and in one of them a video is playing, after closing that window the video keeps playing until the app is closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions