Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 0efdc18

Browse files
author
“yauheni-kryzhyk-deriv”
committed
yauheni/#58488 TrackJS error, reading undefined (css)
1 parent a526d97 commit 0efdc18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/windows/windows.es6

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,10 @@ export const createBlankWindow = function ($html, options) {
377377

378378
// add an item to window menu
379379
const add_to_windows_menu = () => {
380-
const cleaner = workspace.addDialog(options.title, blankWindow.moveToTop, () => blankWindow.dialog('close'));
380+
const cleaner = () => {
381+
blankWindow.dialogExtend('restore');
382+
workspace.addDialog(options.title, blankWindow.moveToTop, () => blankWindow.dialog('close'));
383+
}
381384
blankWindow.on('dialogclose', cleaner);
382385

383386
};

0 commit comments

Comments
 (0)