aboutsummaryrefslogtreecommitdiffstats
path: root/opener-ex.js
diff options
context:
space:
mode:
authorteramako2010-04-12 11:45:20 +0000
committerteramako2010-04-12 11:45:20 +0000
commit8a87ada853a356ff3e9cac8eb6316029c923b005 (patch)
tree6ee6a0d7a054bfc30aae7db3520282655ef75c20 /opener-ex.js
parent07a99485e1c8af73d3ddb650ae69e2f519d85907 (diff)
downloadvimperator-plugins-8a87ada853a356ff3e9cac8eb6316029c923b005.tar.bz2
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
Diffstat (limited to 'opener-ex.js')
-rwxr-xr-xopener-ex.js4
1 files changed, 3 insertions, 1 deletions
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: