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
smarter-animate
alex 2024-05-22 11:07:46 +01:00 zatwierdzone przez GitHub
rodzic 8fa87cc84a
commit db32f0e8e6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

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