Skip to content

Conversation

@MartinNuc
Copy link
Contributor

To solve issue with server side rendering I need flow.js to be able to survive missing window and document objects.

I am not sure how to cover this by tests however :-( any suggestions?

console.warn('Flowjs needs window and document objects to work');
}
// ie10+
var ie10plus = window.navigator.msPointerEnabled;
Copy link
Member

Choose a reason for hiding this comment

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

This is still going to break with an error here. Shouldn't we call return; after console.warn?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, god how could I? :-) Of course you are right. When I tested it I had return. Then I put there the warning but forgot to keep the return. Going to update PR.

@AidasK AidasK merged commit 348527d into flowjs:master Oct 5, 2018
@AidasK
Copy link
Member

AidasK commented Oct 5, 2018

Merged. Do you need a build in dist/ too?

@AidasK
Copy link
Member

AidasK commented Oct 5, 2018

Nm, made a new build released under 2.13.1

@MartinNuc
Copy link
Contributor Author

Ya I need it also in dist. Thank you.

@MartinNuc
Copy link
Contributor Author

@AidasK I just tried that and it looks like the 2.13.1 is not published to npm repository: https://www.npmjs.com/package/@flowjs/flow.js

Can you please publish it? I could probably publish it on my own but don't want to mess anything :-)

@AidasK
Copy link
Member

AidasK commented Oct 6, 2018

Published. I haven't done this either, but hope it works

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants