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

Commit

Permalink
yauheni/#58488 TrackJS error, reading undefined (css)
Browse files Browse the repository at this point in the history
  • Loading branch information
“yauheni-kryzhyk-deriv” committed Apr 12, 2022
1 parent a526d97 commit 0efdc18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/windows/windows.es6
Original file line number Diff line number Diff line change
Expand Up @@ -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);

};
Expand Down

0 comments on commit 0efdc18

Please sign in to comment.