From 8a87ada853a356ff3e9cac8eb6316029c923b005 Mon Sep 17 00:00:00 2001 From: teramako Date: Mon, 12 Apr 2010 11:45:20 +0000 Subject: fix: url is null on restoring a tab git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37194 d0d07461-0603-4401-acd4-de1884942a52 --- opener-ex.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'opener-ex.js') diff --git a/opener-ex.js b/opener-ex.js index 60feaf1..55bfd4c 100755 --- a/opener-ex.js +++ b/opener-ex.js @@ -23,6 +23,8 @@ function createAround(isAddTab){ */ return function openerAround(wrappedOriginalFunction, args){ let url = args[0], uri; + if (!url) + return wrappedOriginalFunction(); try { uri = getRedirectedURL(util.createURI(url)); args[0] = uri.spec; @@ -134,4 +136,4 @@ function onUnload(){ } } -// vim: sw=2 ts=2 et: \ No newline at end of file +// vim: sw=2 ts=2 et: -- cgit v1.2.3