Use GM.openInTab when it becomes available.
This commit is contained in:
parent
7f53337486
commit
204b0a5334
@ -61,6 +61,7 @@
|
||||
"GM.setValue",
|
||||
"GM.deleteValue",
|
||||
"GM.listValues",
|
||||
"GM.openInTab",
|
||||
"GM.xmlHttpRequest"
|
||||
],
|
||||
"min": {
|
||||
|
||||
@ -259,7 +259,9 @@ $.modifiedClick = (e) ->
|
||||
|
||||
$.open =
|
||||
<% if (type === 'userscript') { %>
|
||||
if GM_openInTab?
|
||||
if GM?.openInTab?
|
||||
GM.openInTab
|
||||
else if GM_openInTab?
|
||||
GM_openInTab
|
||||
else
|
||||
(url) -> window.open url, '_blank'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user