We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 429a2d9 commit 4f86f01Copy full SHA for 4f86f01
ide/main/src/content/selenium-ide-loader.js
@@ -45,14 +45,15 @@ SeleniumIDE.Loader.getEditors = function () {
45
}
46
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
47
var editorWindow = wm.getMostRecentWindow('global:selenium-ide');
48
- if (editorWindow && editorWindow.editor) {
+ if (editorWindow && editorWindow.editor && editors.indexOf(editorWindow.editor) == -1) {
49
editors.push(editorWindow.editor);
50
51
var mainWindow = wm.getMostRecentWindow("navigator:browser");
52
editor = this.getSidebarEditor(mainWindow.document);
53
- if (editor) {
+ if (editor && editors.indexOf(editor) == -1) {
54
editors.push(editor);
55
56
+
57
return editors;
58
};
59
0 commit comments