diff options
Diffstat (limited to 'opener-ex.js')
-rwxr-xr-x | opener-ex.js | 4 |
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: |