mmikkel / Detect-Craft

Craft CMS wrapper for the Mobile_Detect library
MIT License
26 stars 3 forks source link

Using version() method #3

Open ryanfoote opened 6 years ago

ryanfoote commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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