mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-02 11:21:46 +00:00
update embed code
This commit is contained in:
@@ -125,9 +125,10 @@ struct ChannelWebAccessView: View {
|
||||
!relayDomains.isEmpty {
|
||||
"""
|
||||
<div data-simplex-channel-preview
|
||||
data-relay-domains="\(relayDomains.joined(separator: ","))"
|
||||
data-channel-id="\(pg.publicGroupId)"
|
||||
data-channel-link="\(pg.groupLink)"></div>
|
||||
data-channel-link="\(pg.groupLink)"
|
||||
data-channel-id="\(pg.publicGroupId)"
|
||||
data-relay-domains="\(relayDomains.joined(separator: ","))"
|
||||
></div>
|
||||
<script src="https://simplex.chat/js/channel-preview.js"></script>
|
||||
"""
|
||||
} else {
|
||||
|
||||
+4
-3
@@ -176,8 +176,9 @@ private fun embedCode(groupRelays: List<GroupRelay>, groupInfo: GroupInfo): Stri
|
||||
if (relayDomains.isEmpty()) return null
|
||||
val domains = relayDomains.joinToString(",")
|
||||
return """<div data-simplex-channel-preview
|
||||
data-relay-domains="$domains"
|
||||
data-channel-id="${pg.publicGroupId}"
|
||||
data-channel-link="${pg.groupLink}"></div>
|
||||
data-channel-link="${pg.groupLink}"
|
||||
data-channel-id="${pg.publicGroupId}"
|
||||
data-relay-domains="$domains"
|
||||
></div>
|
||||
<script src="https://simplex.chat/js/channel-preview.js"></script>"""
|
||||
}
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
data-simplex-channel-preview
|
||||
<div data-simplex-channel-preview
|
||||
data-channel-link="YOUR_CHANNEL_LINK"
|
||||
data-channel-id="YOUR_CHANNEL_ID"
|
||||
data-relay-domains="relay1.example.com"
|
||||
|
||||
Reference in New Issue
Block a user