fix local IP for dev, fix broadcast view
This commit is contained in:
parent
221a453411
commit
d7f4d61b55
|
|
@ -289,15 +289,12 @@ export const overrides: TLUiOverrides = {
|
||||||
kbd: "alt+b",
|
kbd: "alt+b",
|
||||||
readonlyOk: true,
|
readonlyOk: true,
|
||||||
onSelect: () => {
|
onSelect: () => {
|
||||||
const otherUsers = Array.from(editor.store.allRecords()).filter(
|
const collaborators = editor.getCollaborators()
|
||||||
(record) =>
|
collaborators
|
||||||
record.typeName === "instance_presence" &&
|
.filter((user) => user.id !== editor.user.getId())
|
||||||
record.id !== editor.user.getId(),
|
.forEach((user) => {
|
||||||
)
|
editor.startFollowingUser(user.id)
|
||||||
|
})
|
||||||
otherUsers.forEach((user) => {
|
|
||||||
editor.startFollowingUser(user.id)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
stopBroadcast: {
|
stopBroadcast: {
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ const { preflight, corsify } = cors({
|
||||||
// For development - check if it's a localhost or local IP
|
// For development - check if it's a localhost or local IP
|
||||||
if (
|
if (
|
||||||
origin.match(
|
origin.match(
|
||||||
/^http:\/\/(localhost|127\.0\.0\.192\.168\.|169\.254\.|10\.)/,
|
/^http:\/\/(localhost|127\.0\.0\.1|192\.168\.|169\.254\.|10\.)/,
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return origin
|
return origin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue