Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Using version() method #3

Open
ryanfoote opened this issue Oct 4, 2017 · 2 comments
Open

Using version() method #3

ryanfoote opened this issue Oct 4, 2017 · 2 comments

Comments

@ryanfoote
Copy link

Hi!

Calling version() only seems to return a boolean value. For example, craft.detect.version('Safari') returns "1" on iOS 11 Safari. Via Mobile Detect's demo page, version('Safari') returns "11.0".

Is this an issue that can be cleared up by updating the Mobile Detect library in the plugin to the current version?

@mmikkel
Copy link
Owner

mmikkel commented Oct 5, 2017

Hi @ryanfoote – I just published Detect 1.0.2, which has the latest version for Mobile_Detect. I haven't been able to test it on iOS, though. If you can test it for me, that'd be a big help :)

@ryanfoote
Copy link
Author

That didn't seem to be the issue. I'm still getting "1" returned when craft.detect.version('Safari') is called.

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

No branches or pull requests

2 participants