File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ In another terminal window, run the snippet dev script:
23
23
yarn dev-snippet
24
24
```
25
25
26
- Then, open ` file:/<your files>/social-app/bskyembed/ test.html ` in your browser.
26
+ You can then see the testbed page at http://localhost:5173/ test
Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ interface Window {
7
7
}
8
8
9
9
/**
10
- * Allow url to be overwritten during development. `file:` protcol check
11
- * should mean it won't ever get accidentally overridden in production
10
+ * Allow url to be overwritten during development
12
11
*/
12
+ const IS_DEV =
13
+ window . location . protocol === 'file:' ||
14
+ window . location . hostname === 'localhost'
13
15
const EMBED_URL =
14
- window . location . protocol === 'file:' && window . BSKY_DEV_EMBED_URL
16
+ IS_DEV && window . BSKY_DEV_EMBED_URL
15
17
? window . BSKY_DEV_EMBED_URL
16
18
: 'https://embed.bsky.app'
17
19
You can’t perform that action at this time.
0 commit comments