Skip to content

Add new props of scripts and metas #28

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

shiyouping
Copy link

I added two new props that will generate script tags and meta tags. As I am not familiar with typescript, I am not sure if my modification to NewWindow.d.ts is correct or not. If not, please help me to correct it if you want to merge my changes. Many thanks.

@rmariuzzo
Copy link
Owner

@shiyouping I'm wondering if it would be better to delegate the inclusion of metas, scripts and other stuff to the consumer instead of this lib. We could consider adding a callback that return the window reference. With that ref we will allow other consumers to do whatever that please them with the opened window. wdyt?

Note: I'm aware on the time it took me to reply.

Copy link
Owner

@rmariuzzo rmariuzzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you!

@rmariuzzo rmariuzzo self-assigned this Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants