GM_openInTab only takes one argument.
This commit is contained in:
parent
68761aac28
commit
2b2e0b6d16
@ -849,7 +849,7 @@
|
|||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
href: URL
|
href: URL
|
||||||
});
|
});
|
||||||
return GM_openInTab(a.href, '_blank');
|
return GM_openInTab(a.href);
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return function(URL) {
|
return function(URL) {
|
||||||
|
|||||||
@ -143,7 +143,7 @@ $.extend $,
|
|||||||
(URL) ->
|
(URL) ->
|
||||||
# XXX fix GM opening file://// for protocol-less URLs.
|
# XXX fix GM opening file://// for protocol-less URLs.
|
||||||
a = $.el 'a', href: URL
|
a = $.el 'a', href: URL
|
||||||
GM_openInTab a.href, '_blank'
|
GM_openInTab a.href
|
||||||
else
|
else
|
||||||
(URL) -> window.open URL, '_blank'
|
(URL) -> window.open URL, '_blank'
|
||||||
debounce: (wait, fn) ->
|
debounce: (wait, fn) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user