Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Add a bookmarklet? #4

Closed
Daniel15 opened this issue Nov 19, 2015 · 3 comments
Closed

Idea: Add a bookmarklet? #4

Daniel15 opened this issue Nov 19, 2015 · 3 comments

Comments

@Daniel15
Copy link

It would be handy to have this as a bookmarklet, so I could instantly inject it into a page that uses immutable-js without having to edit the site's code to pull this library in. Would that be possible? It looks like the formatter just needs to be added to the window.devtoolsFormatters array in the page's context. I guess the hard bit would be actually getting the reference to Immutable-js - It could probably assume there's either an Immutable global (eg. using immutable-js from CDN), or require('immutable') pulls it in (on some sites with CommonJS requires, eg. on Facebook).

@andrewdavey
Copy link
Owner

Yes it's possible. But as you said though, reliably getting a reference to Immutable is tricky.

@langpavel
Copy link
Collaborator

blocked by #20

@Daniel15
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants