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:
alex 2024-05-22 11:07:46 +01:00 committed by GitHub
parent 8fa87cc84a
commit db32f0e8e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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