From de50d19993b598e18161ec3ff458fc8ee0e0479a Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 21 Jan 2016 20:57:55 +0900 Subject: [PATCH] Output error --- content/treestyletab/windowHelper.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; };