This commit is contained in:
XiaoMo 2023-06-04 18:18:42 +08:00
parent 3750585b89
commit 28f854f89c

View File

@ -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);
}