Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ac2e7839
authored
May 07, 2026
by
qiuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.yabolive.net:88/libai/Static
parents
3da2070f
0593f463
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
js/webAppComm.js
js/webAppComm.js
View file @
ac2e7839
...
@@ -867,15 +867,27 @@ webAppComm.prototype.backOriginApp = function () {
...
@@ -867,15 +867,27 @@ webAppComm.prototype.backOriginApp = function () {
webAppCollaboration
(
obj2
);
webAppCollaboration
(
obj2
);
}
}
// 57
: 告知客户端需要打开的是网页还是flutter页面(flutter使用)
// 57
:开启/加入游戏房间
webAppComm
.
prototype
.
openWebOrFlutterPage
=
function
(
pageType
,
popupStyle
,
extraString
)
{
webAppComm
.
prototype
.
joinGameRoom
=
function
(
isOpenGameRoom
,
roomId
)
{
let
obj
=
{
let
obj
=
{
"cid"
:
57
,
"cid"
:
57
,
"data"
:
{
"data"
:
{
"msg"
:
'告知客户端需要打开的是网页还是flutter页面'
,
"msg"
:
'开启/加入游戏房间'
,
"pageType"
:
pageType
,
"isOpenGameRoom"
:
isOpenGameRoom
,
//0 开启房间 1 加入房间
"popupStyle"
:
popupStyle
,
"roomId"
:
roomId
"extraString"
:
extraString
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
}
// 58: 告知客户端是否打开原生侧滑返回手势(flutter使用)
webAppComm
.
prototype
.
setNativeSwipeBackEnabled
=
function
(
enabled
)
{
let
obj
=
{
"cid"
:
58
,
"data"
:
{
"msg"
:
'是否打开原生侧滑返回手势'
,
"enabled"
:
enabled
,
}
}
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment