-
Notifications
You must be signed in to change notification settings - Fork 510
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
fix(css-load): fix useCssLoadPatch determination when encountering unknown UA + platforms #417
base: master
Are you sure you want to change the base?
Conversation
…known UA strings Requires rebuild post-merge. Fixes ocombe#416
// Safari < 6 | ||
var versionMatch = ua.match(/version\/([\.\d]+)/i); | ||
useCssLoadPatch = (versionMatch && versionMatch[1] && parseFloat(versionMatch[1]) < 6); | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrapped in try-catch with no other changes
Wondering if you had chance to take a look at this @ocombe |
any thoughts, @ocombe ? we're seeing this fail fairly frequently with the code that's in master. |
@booleanbetrayal Did you build and test this? I'm having a similar issue, but I have no idea what tool is used to build this. Just manually added it to the main js file and minified version. Can confirm issue is fixed; however, my ocLazyLoad was also insanely outdated on v0.6.3 |
I haven't tried to build this but I could. Is that something I should do @ocombe ? |
Added dist builds to this branch @daerogami via 0b785e6 |
Awesome! It will be a week or so before I can get around to testing this on the project I'm using it on. Thanks @booleanbetrayal! |
Requires rebuild post-merge.
Fixes #416