diff --git a/chrome/content/zotero/tabs.js b/chrome/content/zotero/tabs.js index 228be4f3c6..39cf709cc5 100644 --- a/chrome/content/zotero/tabs.js +++ b/chrome/content/zotero/tabs.js @@ -121,6 +121,8 @@ var Zotero_Tabs = new function () { } } } + // Unset the previously selected tab id, because it was set when restoring tabs + this._prevSelectedID = null; }; /** @@ -136,7 +138,6 @@ var Zotero_Tabs = new function () { */ this.add = function ({ type, data, title, index, select, onClose }) { if (typeof type != 'string') { - throw new Error(`'type' should be a string (was ${typeof type})`); } if (typeof title != 'string') { throw new Error(`'title' should be a string (was ${typeof title})`);