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

Commit

Permalink
Merge pull request #1600 from yauheni-kryzhyk-deriv/track_js_webtrade…
Browse files Browse the repository at this point in the history
…r_reading_undefinied_css

yauheni/#58488 TrackJS error, reading undefined (css)
  • Loading branch information
matin-deriv authored Apr 26, 2022
2 parents 6524a3f + 0efdc18 commit 9df26be
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 9df26be

Please sign in to comment.