Skip to content

Commit

Permalink
fix: 修复browser.js引入版本问题导致的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokinx authored Dec 11, 2024
1 parent ccf8cfc commit ecb595b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ const $modules = new function () {
const metas = [];
const { ip_city, agent } = this.comment;
if ( ip_city ) metas.push({ name: `${$lang.translate("From")}${ip_city}` });
if ( this.info.browser || this.info.os ) {
if ( (this.info.browser || this.info.os) && browser ) {
const _data = browser.parse(agent);
if ( this.info.os ) metas.push({
name: _data.system,
Expand Down
Loading

0 comments on commit ecb595b

Please sign in to comment.