Skip to content

Fix IE check on FastBoot#543

Merged
cibernox merged 1 commit intocibernox:masterfrom
josemarluedke:fix-error-fastboot
Jun 14, 2016
Merged

Fix IE check on FastBoot#543
cibernox merged 1 commit intocibernox:masterfrom
josemarluedke:fix-error-fastboot

Conversation

@josemarluedke
Copy link
Contributor

This fixes #529.

@josemarluedke josemarluedke force-pushed the fix-error-fastboot branch 2 times, most recently from a0f13ae to d36f3c7 Compare June 10, 2016 17:12
const isIE = () => {
if (isFastBoot()) { return false; }

const ua = self.window ? self.window.navigator.userAgent : '';
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe it is easier to just do

const ua = self.window && self.window.navigator ? self.window.navigator.userAgent : '';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Changed!

@josemarluedke josemarluedke changed the title Only check if is IE if not running in FastBoot Fix IE check on FastBoot Jun 14, 2016
@josemarluedke
Copy link
Contributor Author

@cibernox changes applied. Ready for merge.

@cibernox
Copy link
Owner

The master branch is broken for other reasons. I'll cherry pick this commit onto the 0.10 branch tonight

@cibernox cibernox merged commit abedd21 into cibernox:master Jun 14, 2016
@cibernox
Copy link
Owner

I've cherry-picked this change into 0.10.11.

@josemarluedke josemarluedke deleted the fix-error-fastboot branch June 17, 2016 23:19
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.

Cannot read property 'userAgent' of undefined on FastBoot

2 participants