Skip to content

Commit

Permalink
Add OPT Browser Support.
Browse files Browse the repository at this point in the history
  • Loading branch information
vndroid committed May 5, 2019
1 parent bca28af commit 98c853e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Access_UA.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ private function parseBrowser() {
$this->browserID = 'Opera';
$this->browserName = 'Opera';
$this->browserVersion = $matches[1];
} elseif (preg_match('#OPT/([a-zA-Z0-9.]+)#i', $this->ua, $matches)) {
$this->browserID = 'Opera Touch';
$this->browserName = 'Opera Touch';
$this->browserVersion = $matches[1];
} elseif (preg_match('#MQQBrowser/([a-zA-Z0-9.]+)#i', $this->ua, $matches)) {
$this->browserID = 'QQMobile';
$this->browserName = 'QQ浏览器';
Expand Down
2 changes: 1 addition & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @package Access
* @author Kokororin
* @version 2.0.6
* @version 2.0.7
* @link https://github.com/Vndroid/Access
*/
class Access_Plugin implements Typecho_Plugin_Interface
Expand Down

0 comments on commit 98c853e

Please sign in to comment.