mirror of https://github.com/FreeTubeApp/FreeTube
Merge branch 'master' into development
This commit is contained in:
commit
a7601482bf
|
@ -256,8 +256,10 @@ let init = function () {
|
||||||
* Quit the application
|
* Quit the application
|
||||||
*/
|
*/
|
||||||
let allWindowsClosed = function () {
|
let allWindowsClosed = function () {
|
||||||
win.webContents.session.clearStorageData([], (data) => {});
|
if (win !== null) {
|
||||||
win.webContents.session.clearCache((data) => {});
|
win.webContents.session.clearStorageData([], (data) => {});
|
||||||
|
win.webContents.session.clearCache((data) => {});
|
||||||
|
}
|
||||||
app.quit();
|
app.quit();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue