Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 支持淘特小游戏 #873

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/layaAir/laya/utils/Browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class Browser {

//阿里小游戏
if ("my" in Browser.window) {
if(u.indexOf('TB/')>-1||u.indexOf('Taobao/')>-1||u.indexOf('TM/')>-1){
if(u.indexOf('TB/')>-1||u.indexOf('Taobao/')>-1||u.indexOf('TM/')>-1||u.indexOf('AliApp(LT/')>-1){
//这里需要手动初始化阿里适配库
(window as any).tbMiniGame(Laya, Laya);
if (!(Laya as any)["TBMiniAdapter"]) {
Expand Down Expand Up @@ -303,7 +303,7 @@ export class Browser {
Browser.onAlipayMiniGame = true;//阿里小游戏环境判断
Browser.onMiniGame = false;
}
if(u.indexOf('TB/')>-1||u.indexOf('Taobao/')>-1||u.indexOf('TM/')>-1){
if(u.indexOf('TB/')>-1||u.indexOf('Taobao/')>-1||u.indexOf('TM/')>-1||u.indexOf('AliApp(LT/')>-1){
Browser.onTBMiniGame = true;
}
return win;
Expand Down