Skip to content

Commit

Permalink
No more duplicate commands in the sidebar while recording. Fixes Sele…
Browse files Browse the repository at this point in the history
  • Loading branch information
samitbadle committed Apr 18, 2015
1 parent 429a2d9 commit 4f86f01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ide/main/src/content/selenium-ide-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ SeleniumIDE.Loader.getEditors = function () {
}
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var editorWindow = wm.getMostRecentWindow('global:selenium-ide');
if (editorWindow && editorWindow.editor) {
if (editorWindow && editorWindow.editor && editors.indexOf(editorWindow.editor) == -1) {
editors.push(editorWindow.editor);
}
var mainWindow = wm.getMostRecentWindow("navigator:browser");
editor = this.getSidebarEditor(mainWindow.document);
if (editor) {
if (editor && editors.indexOf(editor) == -1) {
editors.push(editor);
}

return editors;
};

Expand Down

0 comments on commit 4f86f01

Please sign in to comment.