diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 9176d8ee..53cbd91f 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -80,8 +80,10 @@ var TreeStyleTabWindowHelper = { result = window.__treestyletab__openLinkIn.apply(this, [aUrl, aWhere, aParams].concat(aArgs)); } catch(e) { + dump(e+'\n'); } - delete window.__treestyletab__openLinkIn_extraParams; + if (window.__treestyletab__openLinkIn_extraParams) + delete window.__treestyletab__openLinkIn_extraParams; return result; }; @@ -96,8 +98,10 @@ var TreeStyleTabWindowHelper = { result = window.__treestyletab__handleLinkClick.apply(this, [aEvent, aHref, aLinkNode].concat(aArgs)); } catch(e) { + dump(e+'\n'); } - delete window.__treestyletab__openLinkIn_extraParams; + if (window.__treestyletab__openLinkIn_extraParams) + delete window.__treestyletab__openLinkIn_extraParams; return result; };