diff --git a/editor/ui/composer/content/editorApplicationOverlay.js b/editor/ui/composer/content/editorApplicationOverlay.js index 9283aa7c699d..aa0d1fbb5746 100644 --- a/editor/ui/composer/content/editorApplicationOverlay.js +++ b/editor/ui/composer/content/editorApplicationOverlay.js @@ -128,7 +128,7 @@ function editPage(url, launchWindow, delay) var win = windowManagerInterface.convertISupportsToDOMWindow( enumerator.getNext() ); if ( win && win.editorShell) { - if (win.editorShell.checkOpenWindowForURLMatch(url, window)) + if (win.editorShell.checkOpenWindowForURLMatch(url, win)) { // We found an editor with our url win.focus();