Skip to content

Changes to how User Agents are handled, and updates to the Javascript Agent functions.

Latest
Compare
Choose a tag to compare
@marknotton marknotton released this 21 May 00:28
· 10 commits to master since this release

Changed

  • User agent exceptiones are now handled earlier on in the Services init method, rather than each time the 'Check' method is called.
  • User agent matches will no longer return true during the 'Check' method, but instead uses Jenssegers "setUserAgent" method to edit the user agent string to a fallback. The fallback defaults to a "Chrome 81 on Windows" string and be can modified in the agents config file. This will not amend your true browser User Agent, it only changes the user agent string referenced in this plugin.
  • Breaking Since version 1.1.7 - Adding custom user agent exceptions in the config file meant defining a 'checkExceptions' value. This is now renamed to 'userAgentExceptions'.

Updated

  • The Javaacript class is now formatted to ES5 isntead of ES6. So the ES5 version has been removed.
  • The Javaacript classes viewport related methods are removed as they were not-inkeeping with the nature of this plugin. Only data-attribute querying methods remain.
  • The Javaacript class is now IIFE instead of a Class.