Remove unneeded worker IS_LOCAL check (#3808)
This was left in by mistake from an earlier version of #3795 ### Change Type - [x] `dotcom` — Changes the tldraw.com web app - [x] `bugfix` — Bug fix
This commit is contained in:
parent
8fa87cc84a
commit
db32f0e8e6
1 changed files with 0 additions and 2 deletions
|
@ -7,7 +7,6 @@ import {
|
|||
ROOM_PREFIX,
|
||||
} from '@tldraw/dotcom-shared'
|
||||
import { Router, createCors } from 'itty-router'
|
||||
import { env } from 'process'
|
||||
import Toucan from 'toucan-js'
|
||||
import { createRoom } from './routes/createRoom'
|
||||
import { createRoomSnapshot } from './routes/createRoomSnapshot'
|
||||
|
@ -87,7 +86,6 @@ const Worker = {
|
|||
}
|
||||
|
||||
export function isAllowedOrigin(origin: string) {
|
||||
if (env.IS_LOCAL === 'true') return true
|
||||
if (origin === 'http://localhost:3000') return true
|
||||
if (origin === 'http://localhost:5420') return true
|
||||
if (origin === 'https://meet.google.com') return true
|
||||
|
|
Loading…
Reference in a new issue