From 0efdc18102454689e8ee6a2205862296921443de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyauheni-kryzhyk-deriv=E2=80=9D?= <“yauheni@deriv.me”> Date: Tue, 12 Apr 2022 12:53:11 +0300 Subject: [PATCH] yauheni/#58488 TrackJS error, reading undefined (css) --- src/windows/windows.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/windows/windows.es6 b/src/windows/windows.es6 index fea25ad98..2e64255a5 100644 --- a/src/windows/windows.es6 +++ b/src/windows/windows.es6 @@ -377,7 +377,10 @@ export const createBlankWindow = function ($html, options) { // add an item to window menu const add_to_windows_menu = () => { - const cleaner = workspace.addDialog(options.title, blankWindow.moveToTop, () => blankWindow.dialog('close')); + const cleaner = () => { + blankWindow.dialogExtend('restore'); + workspace.addDialog(options.title, blankWindow.moveToTop, () => blankWindow.dialog('close')); + } blankWindow.on('dialogclose', cleaner); };