We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ddf1a4 commit 010fb86Copy full SHA for 010fb86
packages/node_modules/overmind/src/Devtools.ts
@@ -23,7 +23,7 @@ export class Devtools {
23
private reconnectInterval: number = 10000
24
private name: string
25
constructor(name: string) {
26
- this.name = location.search.includes('OVERMIND_DEVTOOL') ? name + ' (Overmind Devtool)' : name
+ this.name = typeof location !== 'undefined' && location.search.includes('OVERMIND_DEVTOOL') ? name + ' (Overmind Devtool)' : name
27
}
28
connect = (host: string, onMessage: (message: Message) => void) => {
29
host = host || 'localhost:3031'
0 commit comments