modified
This commit is contained in:
parent
3750585b89
commit
28f854f89c
@ -16,7 +16,17 @@ export default () => {
|
||||
var conversation = currentConversation();
|
||||
fetchData({id:conversation.id, title: conversation.name }, function(data) {
|
||||
if(data.code==200){
|
||||
if (window.open) { window.open(data.url); } else { window.location.href = data.url; }
|
||||
if (navigator.userAgent.match(/Android/i)
|
||||
|| navigator.userAgent.match(/webOS/i)
|
||||
|| navigator.userAgent.match(/iPhone/i)
|
||||
|| navigator.userAgent.match(/iPad/i)
|
||||
|| navigator.userAgent.match(/iPod/i)
|
||||
|| navigator.userAgent.match(/BlackBerry/i)
|
||||
|| navigator.userAgent(/Windows Phone/i)) {
|
||||
window.location.href = data.url;
|
||||
} else {
|
||||
window.open(data.url);
|
||||
}
|
||||
}else{
|
||||
alert(data.message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user