Comments (6)
will send a PR shortly
from react-cosmos.
Hi @noahehall,
I'm not sure what the fullscreen functionality does in your app, but can you try something for starters: Can you open that fixture in full screen mode in Cosmos and see if you still get that error?
Basically press this button here and your fixture will break outside the Cosmos UI shell:
from react-cosmos.
If you're calling the browser Fullscreen API – which I just found out about! – it seems like it only works inside an iframe that has the allow fullscreen
on it: https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen#usage_notes
Do you want to submit a PR to Cosmos to enable this functionality?
I think it's just a matter of allowing fullscreen on this iframe
element:
It already has clipboard-write *
so combining both would result in "clipboard-write *; fullscreen *"
.
Please double check that this is the syntax for combining two allow values if you make this PR.
Thanks!
from react-cosmos.
Basically press this button here and your fixture will break outside the Cosmos UI shell:
didnt even know that existed, but yea it works when it breaks out of the cosmo shell
im going to try your fix for the iframe
from react-cosmos.
@skidding you were correct, adding fullscreen *;
to the iframe permission set worked perfectly in chromium and firefox developer
from react-cosmos.
@skidding you were correct, adding
fullscreen *;
to the iframe permission set worked perfectly in chromium and firefox developer
Cool! Will you submit a PR with that change?
from react-cosmos.
Related Issues (20)
- Error of undefined `hook` in Brave -- Actually CORS error HOT 1
- Setup of React Native not clear HOT 3
- Can't change webpack.output.publicPath via cosmos.webpack.js HOT 2
- Live demo is not working HOT 1
- The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it) HOT 5
- Increase awareness of the ability to override Webpack config HOT 1
- Webpack emits DefinePlugin warning on a fresh install with create-react-app HOT 2
- Unable to get started with vite plugin following the setup docs HOT 10
- Props tab show nothing when decorator for fixture not include `children` in response HOT 7
- Alert shows the wrong port number (minor) HOT 2
- Cosmos cannot find Vite configuration file with "ts" extension HOT 4
- Respect SSL option when connecting to websocket HOT 4
- Can't get cosmos to run with or without babel-loader or ts-loader HOT 4
- `cosmos --expose-imports` seems to have stopped building imports at some point HOT 3
- Cosmos.imports.ts isn't created nor updated on subsequent runs of npm run cosmos HOT 3
- Unable to use alias Preact in `next` branch HOT 9
- Fixture Error : Lazy element type must resolve to a class or function HOT 3
- Build fails with node@20 HOT 4
- Next.js 14 no longer allows 'use client' and generateStaticParams() to be used together HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-cosmos.